|
32 | 32 | #else |
33 | 33 | #define BAT_POS GRect(0, 140, 180, 180) /* probably taller than really needed */ |
34 | 34 | #endif /* DRAW_BATTERY */ |
35 | | - |
36 | | -#else /* PBL_RECT 144x168*/ |
37 | | - #define CLOCK_POS GRect(0, 52, 144, 168) /* probably taller than really needed */ |
38 | | - #define HEALTH_POS GRect(0, 40, 144, 168) |
39 | | - #define BT_POS GRect(0, 120, 144, 168) /* probably taller than really needed */ |
40 | | - #define DATE_POS GRect(0, 140, 144, 168) /* probably taller than really needed */ |
41 | | - #ifdef DRAW_BATTERY |
42 | | - #define BAT_POS GRect(5, 150, 144, 168) |
43 | | - #else |
44 | | - #define BAT_POS GRect(0, 140, 144, 168) /* probably taller than really needed */ |
45 | | - #endif /* DRAW_BATTERY */ |
| 35 | +#else /* PBL_RECT 144x168 */ |
| 36 | + #if PBL_DISPLAY_HEIGHT == 228 // 200x228 Pebble Time 2 (emery) |
| 37 | + // TODO center? shift slight to right a little more, and down |
| 38 | + #define CLOCK_POS GRect(0, 52, 200, 228) /* probably taller than really needed */ |
| 39 | + #define HEALTH_POS GRect(0, 40, 200, 228) |
| 40 | + // below untested |
| 41 | + #define BT_POS GRect(0, 120, 200, 228) /* probably taller than really needed */ |
| 42 | + // FIXME below should be lower... |
| 43 | + #define DATE_POS GRect(0, 205, 200, 228) /* probably taller than really needed */ |
| 44 | + #ifdef DRAW_BATTERY |
| 45 | + #define BAT_POS GRect(5, 215, 200, 228) |
| 46 | + #else |
| 47 | + #define BAT_POS GRect(0, 205, 200, 228) /* probably taller than really needed */ |
| 48 | + #endif /* DRAW_BATTERY */ |
| 49 | + #else // 144x168 Original pebbles; Pebble Classic (aplite), Pebble Time (basalt), Pebble 2 (diorite), Pebble 2 Duo (flint) |
| 50 | + #define CLOCK_POS GRect(0, 52, 144, 168) /* probably taller than really needed */ |
| 51 | + #define HEALTH_POS GRect(0, 40, 144, 168) |
| 52 | + #define BT_POS GRect(0, 120, 144, 168) /* probably taller than really needed */ |
| 53 | + #define DATE_POS GRect(0, 140, 144, 168) /* probably taller than really needed */ |
| 54 | + #ifdef DRAW_BATTERY |
| 55 | + #define BAT_POS GRect(5, 150, 144, 168) |
| 56 | + #else |
| 57 | + #define BAT_POS GRect(0, 140, 144, 168) /* probably taller than really needed */ |
| 58 | + #endif /* DRAW_BATTERY */ |
| 59 | + #endif // end of original rectangle size |
46 | 60 | #endif /* end of Round or rectangle */ |
47 | 61 |
|
48 | 62 | /* for screen shots and font testing |
|
0 commit comments