summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-06-02 18:19:10 -0400
committerFranklin Wei <git@fwei.tk>2017-06-02 18:19:10 -0400
commitcefbde0bbb5f90523233a56ca6c0b0699b4b359e (patch)
tree577e956de98d117b6f3601bcdc95751bd30bfc9f
parent6d541fe9b6b30318f7500c7153a2e37c7e2796bc (diff)
downloadrockbox-cefbde0.tar.gz
rockbox-cefbde0.tar.bz2
rockbox-cefbde0.zip
puzzles: correct drawmode for text
DRMODE_FG should be used instead of DRMODE_COMPLEMENT to allow text to be drawn in color, benefitting puzzles such as Slant and Pattern. Change-Id: I292216490a58344cb93dc5c2ec1780229735313a
-rw-r--r--apps/plugins/puzzles/rockbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 1f3b307f25..eee85b72d0 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -167,7 +167,7 @@ static void rb_draw_text(void *handle, int x, int y, int fonttype,
x -= w;
rb_color(color);
- rb->lcd_set_drawmode(DRMODE_COMPLEMENT);
+ rb->lcd_set_drawmode(DRMODE_FG);
rb->lcd_putsxy(x, y, text);
rb->lcd_set_drawmode(DRMODE_SOLID);
}