diff options
author | Franklin Wei <git@fwei.tk> | 2017-08-16 11:39:34 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-08-16 11:40:42 -0400 |
commit | 71850e8e69190f565cfa49a3ff3a81b28a2e2bdd (patch) | |
tree | 31f35332191ef52dc26518535317d146465bf557 | |
parent | d0c4ef4b78f1a399c02e65abc6ad3fad10e17bd8 (diff) | |
download | rockbox-71850e8e69190f565cfa49a3ff3a81b28a2e2bdd.tar.gz rockbox-71850e8e69190f565cfa49a3ff3a81b28a2e2bdd.zip |
puzzles: various useless tweaks
Change-Id: Ibf9769f99d61581b184d0ffa4ef0614eb976f0e8
-rw-r--r-- | apps/plugins/puzzles/README.rockbox | 3 | ||||
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/apps/plugins/puzzles/README.rockbox b/apps/plugins/puzzles/README.rockbox index b0c54b287f..dc45e73ade 100644 --- a/apps/plugins/puzzles/README.rockbox +++ b/apps/plugins/puzzles/README.rockbox | |||
@@ -26,3 +26,6 @@ original. Updating the upstream version is now as simple as copying a | |||
26 | fresh set of sources to src/. Several hacks were used to accomplish | 26 | fresh set of sources to src/. Several hacks were used to accomplish |
27 | this: a global include specified on the command line, and a directory | 27 | this: a global include specified on the command line, and a directory |
28 | of dummy header files. | 28 | of dummy header files. |
29 | |||
30 | August 2017: Every game that can be played with only the cursor keys | ||
31 | is now functional. | ||
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index 62ed3e9479..509528c95a 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c | |||
@@ -562,11 +562,14 @@ static void rb_draw_poly(void *handle, int *coords, int npoints, | |||
562 | xlcd_filltriangle(x1, y1, | 562 | xlcd_filltriangle(x1, y1, |
563 | x2, y2, | 563 | x2, y2, |
564 | x3, y3); | 564 | x3, y3); |
565 | |||
566 | #ifdef DEBUG_MENU | ||
565 | if(settings.polyanim) | 567 | if(settings.polyanim) |
566 | { | 568 | { |
567 | rb->lcd_update(); | 569 | rb->lcd_update(); |
568 | rb->sleep(HZ/5); | 570 | rb->sleep(HZ/4); |
569 | } | 571 | } |
572 | #endif | ||
570 | #if 0 | 573 | #if 0 |
571 | /* debug code */ | 574 | /* debug code */ |
572 | rb->lcd_set_foreground(LCD_RGBPACK(255,0,0)); | 575 | rb->lcd_set_foreground(LCD_RGBPACK(255,0,0)); |
@@ -616,6 +619,14 @@ static void rb_draw_poly(void *handle, int *coords, int npoints, | |||
616 | } | 619 | } |
617 | else | 620 | else |
618 | draw_antialiased_line(x1, y1, x2, y2); | 621 | draw_antialiased_line(x1, y1, x2, y2); |
622 | |||
623 | #ifdef DEBUG_MENU | ||
624 | if(settings.polyanim) | ||
625 | { | ||
626 | rb->lcd_update(); | ||
627 | rb->sleep(HZ/4); | ||
628 | } | ||
629 | #endif | ||
619 | } | 630 | } |
620 | 631 | ||
621 | int x1, y1, x2, y2; | 632 | int x1, y1, x2, y2; |
@@ -1117,6 +1128,8 @@ static bool config_menu(void) | |||
1117 | char *title; | 1128 | char *title; |
1118 | config_item *config = midend_get_config(me, CFG_SETTINGS, &title); | 1129 | config_item *config = midend_get_config(me, CFG_SETTINGS, &title); |
1119 | 1130 | ||
1131 | rb->lcd_setfont(FONT_UI); | ||
1132 | |||
1120 | bool success = false; | 1133 | bool success = false; |
1121 | 1134 | ||
1122 | if(!config) | 1135 | if(!config) |