diff options
author | JimB16 <f1@jimb.de> | 2015-08-31 04:21:28 +0200 |
---|---|---|
committer | JimB16 <f1@jimb.de> | 2015-08-31 04:21:28 +0200 |
commit | 051d9e416d0ab267065f2e9e23daab43527e827c (patch) | |
tree | 6871325f451c0c737928477b7ae5d55056deed33 | |
parent | 4f1014976c380b9b2fcca2cbfa32ba77487279d3 (diff) | |
parent | c432709715df83f5cd063fd5b14684389e037e15 (diff) |
merge 'fix for 'make pngs''
-rw-r--r-- | gfx.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -73,9 +73,11 @@ def filepath_rules(filepath): w = min(w/8, h/8) args['pic_dimensions'] = w, w elif ext == '.2bpp': - if pokemon_name: + if pokemon_name and name == 'front': w, h = get_pokemon_dimensions(pokemon_name) args['pic_dimensions'] = w, w + elif pokemon_name and name == 'back': + args['pic_dimensions'] = 6, 6 else: args['pic_dimensions'] = 7, 7 return args |