forked from len0rd/rockbox
puzzles: various useless tweaks
Change-Id: Ibf9769f99d61581b184d0ffa4ef0614eb976f0e8
This commit is contained in:
parent
d0c4ef4b78
commit
71850e8e69
2 changed files with 17 additions and 1 deletions
|
@ -26,3 +26,6 @@ original. Updating the upstream version is now as simple as copying a
|
||||||
fresh set of sources to src/. Several hacks were used to accomplish
|
fresh set of sources to src/. Several hacks were used to accomplish
|
||||||
this: a global include specified on the command line, and a directory
|
this: a global include specified on the command line, and a directory
|
||||||
of dummy header files.
|
of dummy header files.
|
||||||
|
|
||||||
|
August 2017: Every game that can be played with only the cursor keys
|
||||||
|
is now functional.
|
||||||
|
|
|
@ -562,11 +562,14 @@ static void rb_draw_poly(void *handle, int *coords, int npoints,
|
||||||
xlcd_filltriangle(x1, y1,
|
xlcd_filltriangle(x1, y1,
|
||||||
x2, y2,
|
x2, y2,
|
||||||
x3, y3);
|
x3, y3);
|
||||||
|
|
||||||
|
#ifdef DEBUG_MENU
|
||||||
if(settings.polyanim)
|
if(settings.polyanim)
|
||||||
{
|
{
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
rb->sleep(HZ/5);
|
rb->sleep(HZ/4);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#if 0
|
#if 0
|
||||||
/* debug code */
|
/* debug code */
|
||||||
rb->lcd_set_foreground(LCD_RGBPACK(255,0,0));
|
rb->lcd_set_foreground(LCD_RGBPACK(255,0,0));
|
||||||
|
@ -616,6 +619,14 @@ static void rb_draw_poly(void *handle, int *coords, int npoints,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
draw_antialiased_line(x1, y1, x2, y2);
|
draw_antialiased_line(x1, y1, x2, y2);
|
||||||
|
|
||||||
|
#ifdef DEBUG_MENU
|
||||||
|
if(settings.polyanim)
|
||||||
|
{
|
||||||
|
rb->lcd_update();
|
||||||
|
rb->sleep(HZ/4);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int x1, y1, x2, y2;
|
int x1, y1, x2, y2;
|
||||||
|
@ -1117,6 +1128,8 @@ static bool config_menu(void)
|
||||||
char *title;
|
char *title;
|
||||||
config_item *config = midend_get_config(me, CFG_SETTINGS, &title);
|
config_item *config = midend_get_config(me, CFG_SETTINGS, &title);
|
||||||
|
|
||||||
|
rb->lcd_setfont(FONT_UI);
|
||||||
|
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
||||||
if(!config)
|
if(!config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue