for y in xrange(0, h, mask.get_height()):
frame.blit(mask, (x, y), None, BLEND_RGBA_MIN)
background.add_frame(frame)
- background.location.bottom = self.get_display_surface().get_rect().bottom
+ background.location.bottom = self.get_display_surface().get_rect(). \
+ bottom
def set_lattice(self):
mask = load(self.get_resource("image", "plateau")).convert_alpha()
for ii, result in enumerate(self.hexagram):
screen = self.screens[ii / 3]
screen.blit(self.lines[result.get_line_index()],
- (6, 5 + (ii % 3) * 16))
+ (6, 5 + ((2 - ii) % 3) * 16))
for ii, screen in enumerate(self.screens):
rect = screen.get_rect()
if ii == 0: