Fix misleading variable name
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define DEBUG_MODE 1
|
// #define DEBUG_MODE 1
|
||||||
|
|
||||||
// declare settings-derived statics
|
// declare settings-derived statics
|
||||||
static uint8_t s_is_jellyfin;
|
static uint8_t s_is_jellyfin;
|
||||||
@@ -116,8 +116,8 @@ static void main_window_load(Window *window) {
|
|||||||
layer_set_update_proc(s_pin_icon_layer, pin_icon_update_proc);
|
layer_set_update_proc(s_pin_icon_layer, pin_icon_update_proc);
|
||||||
pin_animation_init(s_pin_icon_layer);
|
pin_animation_init(s_pin_icon_layer);
|
||||||
|
|
||||||
uint8_t rect_side_margin = PBL_DISPLAY_WIDTH / 35;
|
static const uint8_t side_margin = PBL_DISPLAY_WIDTH / 35;
|
||||||
s_last_watched_layer = text_layer_create(GRect(PBL_IF_ROUND_ELSE(s_icon_width, 0) + rect_side_margin, s_sleep_bar_drop, PBL_DISPLAY_WIDTH - (PBL_IF_ROUND_ELSE(s_icon_width * 2, s_icon_width) + rect_side_margin * 2), PBL_DISPLAY_HEIGHT - s_sleep_bar_drop));
|
s_last_watched_layer = text_layer_create(GRect(PBL_IF_ROUND_ELSE(s_icon_width, 0) + side_margin, s_sleep_bar_drop, PBL_DISPLAY_WIDTH - (PBL_IF_ROUND_ELSE(s_icon_width * 2, s_icon_width) + side_margin * 2), PBL_DISPLAY_HEIGHT - s_sleep_bar_drop));
|
||||||
#if PBL_DISPLAY_WIDTH >= 200
|
#if PBL_DISPLAY_WIDTH >= 200
|
||||||
s_sleep_time_layer = text_layer_create(GRect(0, PBL_IF_ROUND_ELSE(21, -2), PBL_DISPLAY_WIDTH, 30));
|
s_sleep_time_layer = text_layer_create(GRect(0, PBL_IF_ROUND_ELSE(21, -2), PBL_DISPLAY_WIDTH, 30));
|
||||||
text_layer_set_font(s_sleep_time_layer, fonts_get_system_font(FONT_KEY_GOTHIC_24_BOLD));
|
text_layer_set_font(s_sleep_time_layer, fonts_get_system_font(FONT_KEY_GOTHIC_24_BOLD));
|
||||||
|
|||||||
Reference in New Issue
Block a user