summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-11-18 21:05:59 -0500
committeryenatch <yenatch@gmail.com>2013-11-18 21:05:59 -0500
commit3dac619f2d08f22b31e51311e27225c9f97d642e (patch)
treed18c1a11f38cfcb5ce55135470c3d37fefc8bf22
parentdfc88b9ac0369632bfa93a3859bf26dc2828ae9e (diff)
gfx: fix misuse of export_2bpp_to_png
-rw-r--r--pokemontools/gfx.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pokemontools/gfx.py b/pokemontools/gfx.py
index 37dd1b6..3c5346e 100644
--- a/pokemontools/gfx.py
+++ b/pokemontools/gfx.py
@@ -1598,8 +1598,7 @@ if __name__ == "__main__":
name = os.path.splitext(argv[3])[0]
lz = open(name+'.lz', 'rb').read()
to_file(name+'.2bpp', Decompressed(lz, 'vert').output)
- pic = open(name+'.2bpp', 'rb').read()
- to_file(name+'.png', export_2bpp_to_png(pic))
+ export_2bpp_to_png(name+'.2bpp')
else:
export_lz_to_png(argv[2])