convert indents to 4 spaces in gfx.py

indents were previously 8 spaces
This commit is contained in:
cogitokat 2013-06-23 16:47:35 -03:00
parent a60bf16901
commit 0b5885e1a9

View File

@ -57,6 +57,7 @@ def hex_dump(input, debug = True):
# margin
for char in range(margin):
output += ' '
#
for byte in range(bytes_per_line):
output += hex(byte)[2:].zfill(2) + ' '
@ -201,7 +202,6 @@ class Compressed:
"""
def __init__(self, image = None, mode = 'horiz', size = None):
assert image, 'need something to compress!'
image = list(image)
self.image = image
@ -1558,8 +1558,7 @@ def dump_tileset_pngs():
"""
Convert .lz format tilesets into .png format tilesets.
Also, leaves a bunch of wonderful .2bpp files everywhere for
your amusement.
Also, leaves a bunch of wonderful .2bpp files everywhere for your amusement.
"""
for tileset_id in range(37):
tileset_filename = "../gfx/tilesets/" + str(tileset_id).zfill(2) + ".lz"