Add gabbro+chalk support (lol please don't use on chalk - this will be disabled eventually)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# Civic-Segments
|
||||
|
||||
PT2 watchface clone of the beautiful 8th gen Honda Civic digital speedometer segmented display.
|
||||
PT2/PR2 watchface clone of the beautiful 8th gen Honda Civic digital speedometer segmented display.
|
||||
|
||||
+3
-1
@@ -17,7 +17,9 @@
|
||||
"sdkVersion": "3",
|
||||
"enableMultiJS": true,
|
||||
"targetPlatforms": [
|
||||
"emery"
|
||||
"chalk",
|
||||
"emery",
|
||||
"gabbro"
|
||||
],
|
||||
"watchapp": {
|
||||
"watchface": true
|
||||
|
||||
@@ -7,7 +7,13 @@ static BitmapLayer *s_time_mg_layers[4];
|
||||
static BitmapLayer *s_time_fg_layers[4];
|
||||
static const uint8_t s_x_r = (PBL_DISPLAY_WIDTH / 2) + 2;
|
||||
static const uint8_t s_x_l = (s_x_r - 2 * (69 / 2)) - 5;
|
||||
#if PBL_DISPLAY_HEIGHT == 260
|
||||
static const GRect s_time_grects[4] = {GRect(s_x_l, 18, 69, 110), GRect(s_x_r, 18, 69, 110), GRect(s_x_l, 132, 69, 110), GRect(s_x_r, 132, 69, 110)};
|
||||
#elif PBL_DISPLAY_HEIGHT == 180
|
||||
static const GRect s_time_grects[4] = {GRect(s_x_l, -22, 69, 110), GRect(s_x_r, -22, 69, 110), GRect(s_x_l, 92, 69, 110), GRect(s_x_r, 92, 69, 110)};
|
||||
#else
|
||||
static const GRect s_time_grects[4] = {GRect(s_x_l, 2, 69, 110), GRect(s_x_r, 2, 69, 110), GRect(s_x_l, 116, 69, 110), GRect(s_x_r, 116, 69, 110)};
|
||||
#endif
|
||||
|
||||
// persist statics&defines
|
||||
static GColor8 s_led_color;
|
||||
|
||||
Reference in New Issue
Block a user