parent
acb18eff4a
commit
7318957dfd
|
@ -1,7 +1,7 @@
|
||||||
#include <pebble.h>
|
#include <pebble.h>
|
||||||
|
|
||||||
#define KEY_COLORS 0
|
#define KEY_COLORS 0
|
||||||
#define KEY_INVERSE 0
|
#define KEY_INVERSE 1
|
||||||
|
|
||||||
#define ANTIALIASING true
|
#define ANTIALIASING true
|
||||||
#define INVERSE true
|
#define INVERSE true
|
||||||
|
@ -81,6 +81,11 @@ static void handle_colorchange() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (inverse) {
|
||||||
|
gcolorbg = GColorWhite;
|
||||||
|
} else {
|
||||||
|
gcolorbg = GColorBlack;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
||||||
|
@ -90,7 +95,6 @@ static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
||||||
if(colors_t) {
|
if(colors_t) {
|
||||||
colors = colors_t->value->uint8;
|
colors = colors_t->value->uint8;
|
||||||
persist_write_int(KEY_COLORS, colors);
|
persist_write_int(KEY_COLORS, colors);
|
||||||
handle_colorchange();
|
|
||||||
}
|
}
|
||||||
if(inverse_t && inverse_t->value->int32 > 0) {
|
if(inverse_t && inverse_t->value->int32 > 0) {
|
||||||
persist_write_bool(KEY_INVERSE, true);
|
persist_write_bool(KEY_INVERSE, true);
|
||||||
|
@ -99,6 +103,7 @@ static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
||||||
persist_write_bool(KEY_INVERSE, false);
|
persist_write_bool(KEY_INVERSE, false);
|
||||||
inverse = false;
|
inverse = false;
|
||||||
}
|
}
|
||||||
|
handle_colorchange();
|
||||||
if(s_canvas_layer) {
|
if(s_canvas_layer) {
|
||||||
layer_mark_dirty(s_canvas_layer);
|
layer_mark_dirty(s_canvas_layer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue