turn off clip on tile fill
This commit is contained in:
parent
301f547a25
commit
19d224fdc1
|
@ -315,12 +315,13 @@ def get_inverted_surface(base):
|
|||
del pixels
|
||||
return surface
|
||||
|
||||
def fill_tile(surface, tile, rect=None):
|
||||
def fill_tile(surface, tile, rect=None, flags=0):
|
||||
w, h = tile.get_size()
|
||||
surface.set_clip(rect)
|
||||
for x in range(0, surface.get_width(), w):
|
||||
for y in range(0, surface.get_height(), h):
|
||||
surface.blit(tile, (x, y))
|
||||
surface.blit(tile, (x, y), None, flags)
|
||||
surface.set_clip(None)
|
||||
|
||||
def load_frames(path, transparency=False, ppa=True, key=None, query=None):
|
||||
if os.path.isfile(path):
|
||||
|
|
Loading…
Reference in New Issue