ref: 358b5b074b45e4a484799fde4e18bc2cb4fec78b
parent: 723645b47011e2f7522bbcbb8304ffdc3bf774c1
author: Bryan Bishop <[email protected]>
date: Wed Jun 12 18:44:35 EDT 2013
Revert "make gfx.py png take only a path" This reverts commit 915c6358490494b87c81a464492944f80ee86384.
--- a/extras/gfx.py
+++ b/extras/gfx.py
@@ -1604,9 +1604,7 @@
elif sys.argv[1] == 'png':
if '.2bpp' in sys.argv[2]:
- if len(sys.argv) == 3:
- to_png(sys.argv[2])
- elif sys.argv[4] == 'greyscale':
+ if sys.argv[4] == 'greyscale':
to_png(sys.argv[2], sys.argv[3])
else:
to_png(sys.argv[2], sys.argv[3], sys.argv[4])