From c432709715df83f5cd063fd5b14684389e037e15 Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 30 Aug 2015 19:11:31 -0700 Subject: [PATCH] Forgot about backsprites. --- gfx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx.py b/gfx.py index 677553219..ec5bbb9d8 100644 --- a/gfx.py +++ b/gfx.py @@ -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