forked from len0rd/rockbox
fix window sizes to match the screen size, enlarged the player sim font
to use the 12x16 one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1635 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7cdf5c8cab
commit
2ed1052a6d
2 changed files with 17 additions and 2 deletions
|
@ -83,7 +83,13 @@ static XrmOptionDescRec default_options [] = {
|
|||
|
||||
static char *default_defaults[] = {
|
||||
".root: false",
|
||||
"*geometry: 120x70", /* this should be .geometry, but nooooo... */
|
||||
"*geometry: "
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
"120x68"
|
||||
#else
|
||||
"138x54"
|
||||
#endif
|
||||
, /* this should be .geometry, but nooooo... */
|
||||
"*mono: false",
|
||||
"*installColormap: false",
|
||||
"*visualID: default",
|
||||
|
|
|
@ -197,6 +197,10 @@ screenhack (Display *the_dpy, Window the_window)
|
|||
|
||||
screen_redraw();
|
||||
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
lcd_setfont(2);
|
||||
#endif
|
||||
|
||||
app_main();
|
||||
}
|
||||
|
||||
|
@ -206,8 +210,13 @@ void screen_redraw()
|
|||
|
||||
#define X1 0
|
||||
#define Y1 0
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
#define X2 (LCD_WIDTH + MARGIN_X*2)
|
||||
#define Y2 (LCD_HEIGHT + MARGIN_Y*2)
|
||||
#define Y2 (LCD_HEIGHT + MARGIN_Y)
|
||||
#else
|
||||
#define X2 137
|
||||
#define Y2 53
|
||||
#endif
|
||||
|
||||
drawline(1, X1, Y1, X2, Y1);
|
||||
drawline(1, X2, Y1, X2, Y2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue