1
0
Fork 0
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:
Björn Stenberg 2002-05-10 14:56:52 +00:00
parent 71cda11e65
commit c492d24cce
8 changed files with 296 additions and 254 deletions

View file

@ -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);