diff options
author | Victor Häggqvist <[email protected]> | 2015-11-21 21:12:12 +0100 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2015-11-21 21:12:12 +0100 |
commit | c0f6f54f8bddbe5900784e3ca40d113c989e2629 (patch) | |
tree | 71bda1cbb27a27846245593585433e06cb491db7 | |
parent | d8039da2d8da2f44fb4a5f8f21b42359470d3bba (diff) |
fix text centering on PTv1.5
-rw-r--r-- | src/battery.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/battery.c b/src/battery.c index dc93b81..3072c9b 100644 --- a/src/battery.c +++ b/src/battery.c @@ -79,6 +79,8 @@ void window_load(Window *window) { #ifdef PBL_ROUND battery_percentage = text_layer_create((GRect) { .origin = { 0, 55 }, .size = { bounds.size.w, 45 } }); +#elif PBL_COLOR + battery_percentage = text_layer_create((GRect) { .origin = { 0, 45 }, .size = { bounds.size.w, 45 } }); #else battery_percentage = text_layer_create((GRect) { .origin = { 0, 32 }, .size = { bounds.size.w, 45 } }); #endif @@ -88,6 +90,8 @@ void window_load(Window *window) { #ifdef PBL_ROUND charge_status = text_layer_create((GRect) { .origin = { 0, 102 }, .size = { bounds.size.w, 20 } }); +#elif PBL_COLOR + charge_status = text_layer_create((GRect) { .origin = { 0, 92 }, .size = { bounds.size.w, 20 } }); #else charge_status = text_layer_create((GRect) { .origin = { 0, 82 }, .size = { bounds.size.w, 20 } }); #endif |