Avoid loading some resources on round watches
This commit is contained in:
+6
-4
@@ -9,17 +9,17 @@ static TextLayer *s_text_layer;
|
||||
static GBitmap *s_action_icon_plus;
|
||||
static GBitmap *s_action_icon_minus;
|
||||
static GBitmap *s_action_icon_reset;
|
||||
static GBitmap *s_legacy_actionbar_patch_bottom;
|
||||
static GBitmap *s_legacy_actionbar_patch_top;
|
||||
|
||||
static ActionBarLayer *s_action_bar_layer;
|
||||
static StatusBarLayer *s_status_bar_layer;
|
||||
static BitmapLayer *s_patch_bottom_layer;
|
||||
static BitmapLayer *s_patch_top_layer;
|
||||
|
||||
static int s_count;
|
||||
|
||||
#if PBL_RECT
|
||||
static GBitmap *s_legacy_actionbar_patch_bottom;
|
||||
static GBitmap *s_legacy_actionbar_patch_top;
|
||||
static BitmapLayer *s_patch_bottom_layer;
|
||||
static BitmapLayer *s_patch_top_layer;
|
||||
#if PBL_DISPLAY_WIDTH == 200
|
||||
static const GRect s_patch_bottom_grect = GRect(166, 223, 34, 5);
|
||||
static const GRect s_patch_top_grect = GRect(166, 20, 34, 5);
|
||||
@@ -119,8 +119,10 @@ void init() {
|
||||
s_action_icon_plus = gbitmap_create_with_resource(RESOURCE_ID_PLUS);
|
||||
s_action_icon_minus = gbitmap_create_with_resource(RESOURCE_ID_MINUS);
|
||||
s_action_icon_reset = gbitmap_create_with_resource(RESOURCE_ID_RESET);
|
||||
#if PBL_RECT
|
||||
s_legacy_actionbar_patch_bottom = gbitmap_create_with_resource(RESOURCE_ID_PATCH_BOTTOM);
|
||||
s_legacy_actionbar_patch_top = gbitmap_create_with_resource(RESOURCE_ID_PATCH_TOP);
|
||||
#endif
|
||||
|
||||
s_window = window_create();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user