forked from len0rd/rockbox
Adapted to changes in the lcd API.
Added player support to the dir browser. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@541 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
71cda11e65
commit
c492d24cce
8 changed files with 296 additions and 254 deletions
|
@ -310,14 +310,14 @@ void game_loop(void)
|
|||
sleep(10);
|
||||
}
|
||||
if(gameover()) {
|
||||
char w, h;
|
||||
int w, h;
|
||||
|
||||
lcd_fontsize(TETRIS_TITLE_FONT, &w, &h);
|
||||
lcd_getfontsize(TETRIS_TITLE_FONT, &w, &h);
|
||||
lcd_clearrect(TETRIS_TITLE_XLOC, TETRIS_TITLE_YLOC,
|
||||
TETRIS_TITLE_XLOC+(w*sizeof(TETRIS_TITLE)),
|
||||
TETRIS_TITLE_YLOC-h);
|
||||
lcd_puts(TETRIS_TITLE_XLOC, TETRIS_TITLE_YLOC,
|
||||
"You lose!", TETRIS_TITLE_FONT);
|
||||
lcd_putsxy(TETRIS_TITLE_XLOC, TETRIS_TITLE_YLOC, "You lose!",
|
||||
TETRIS_TITLE_FONT);
|
||||
lcd_update();
|
||||
sleep(2);
|
||||
return;
|
||||
|
@ -349,8 +349,8 @@ void tetris(void)
|
|||
init_tetris();
|
||||
|
||||
draw_frame(start_x-1,start_x+max_x,start_y-1,start_y+max_y);
|
||||
lcd_puts(TETRIS_TITLE_XLOC, TETRIS_TITLE_YLOC,
|
||||
TETRIS_TITLE, TETRIS_TITLE_FONT);
|
||||
lcd_putsxy(TETRIS_TITLE_XLOC, TETRIS_TITLE_YLOC, TETRIS_TITLE,
|
||||
TETRIS_TITLE_FONT);
|
||||
lcd_update();
|
||||
|
||||
next_b = t_rand(blocks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue