Brickmania: Paddle selection needs to be done with the integer portion, not in fixed point.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23004 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f7a67625dc
commit
6317bef3ce
1 changed files with 3 additions and 3 deletions
|
@ -1576,7 +1576,7 @@ static int brickmania_game_loop(void)
|
||||||
{
|
{
|
||||||
rb->lcd_bitmap_part(
|
rb->lcd_bitmap_part(
|
||||||
brickmania_pads,
|
brickmania_pads,
|
||||||
0, pad_type*PAD_HEIGHT,
|
0, pad_type*INT3(PAD_HEIGHT),
|
||||||
STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_pads,
|
STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_pads,
|
||||||
BMPHEIGHT_brickmania_pads),
|
BMPHEIGHT_brickmania_pads),
|
||||||
INT3(pad_pos_x), INT3(PAD_POS_Y),
|
INT3(pad_pos_x), INT3(PAD_POS_Y),
|
||||||
|
@ -1586,7 +1586,7 @@ static int brickmania_game_loop(void)
|
||||||
{
|
{
|
||||||
rb->lcd_bitmap_part(
|
rb->lcd_bitmap_part(
|
||||||
brickmania_long_pads,
|
brickmania_long_pads,
|
||||||
0,pad_type*PAD_HEIGHT,
|
0,pad_type*INT3(PAD_HEIGHT),
|
||||||
STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_long_pads,
|
STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_long_pads,
|
||||||
BMPHEIGHT_brickmania_long_pads),
|
BMPHEIGHT_brickmania_long_pads),
|
||||||
INT3(pad_pos_x), INT3(PAD_POS_Y),
|
INT3(pad_pos_x), INT3(PAD_POS_Y),
|
||||||
|
@ -1596,7 +1596,7 @@ static int brickmania_game_loop(void)
|
||||||
{
|
{
|
||||||
rb->lcd_bitmap_part(
|
rb->lcd_bitmap_part(
|
||||||
brickmania_short_pads,
|
brickmania_short_pads,
|
||||||
0,pad_type*PAD_HEIGHT,
|
0,pad_type*INT3(PAD_HEIGHT),
|
||||||
STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_short_pads,
|
STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_short_pads,
|
||||||
BMPHEIGHT_brickmania_short_pads),
|
BMPHEIGHT_brickmania_short_pads),
|
||||||
INT3(pad_pos_x), INT3(PAD_POS_Y),
|
INT3(pad_pos_x), INT3(PAD_POS_Y),
|
||||||
|
|
Loading…
Reference in a new issue