diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-10-08 00:35:14 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-10-08 00:35:14 +0000 |
commit | 6317bef3ce53ff8e9e834017ca0696ac4803c8b1 (patch) | |
tree | 082761eb6cd358fca4ad8d6e00e0180a410ae948 | |
parent | f7a67625dcfe3bc9d532c8fe35146de2b5d3af55 (diff) | |
download | rockbox-6317bef3ce53ff8e9e834017ca0696ac4803c8b1.tar.gz rockbox-6317bef3ce53ff8e9e834017ca0696ac4803c8b1.zip |
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
-rw-r--r-- | apps/plugins/brickmania.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 4a67e22b67..3412057111 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -1576,7 +1576,7 @@ static int brickmania_game_loop(void) | |||
1576 | { | 1576 | { |
1577 | rb->lcd_bitmap_part( | 1577 | rb->lcd_bitmap_part( |
1578 | brickmania_pads, | 1578 | brickmania_pads, |
1579 | 0, pad_type*PAD_HEIGHT, | 1579 | 0, pad_type*INT3(PAD_HEIGHT), |
1580 | STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_pads, | 1580 | STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_pads, |
1581 | BMPHEIGHT_brickmania_pads), | 1581 | BMPHEIGHT_brickmania_pads), |
1582 | INT3(pad_pos_x), INT3(PAD_POS_Y), | 1582 | INT3(pad_pos_x), INT3(PAD_POS_Y), |
@@ -1586,7 +1586,7 @@ static int brickmania_game_loop(void) | |||
1586 | { | 1586 | { |
1587 | rb->lcd_bitmap_part( | 1587 | rb->lcd_bitmap_part( |
1588 | brickmania_long_pads, | 1588 | brickmania_long_pads, |
1589 | 0,pad_type*PAD_HEIGHT, | 1589 | 0,pad_type*INT3(PAD_HEIGHT), |
1590 | STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_long_pads, | 1590 | STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_long_pads, |
1591 | BMPHEIGHT_brickmania_long_pads), | 1591 | BMPHEIGHT_brickmania_long_pads), |
1592 | INT3(pad_pos_x), INT3(PAD_POS_Y), | 1592 | INT3(pad_pos_x), INT3(PAD_POS_Y), |
@@ -1596,7 +1596,7 @@ static int brickmania_game_loop(void) | |||
1596 | { | 1596 | { |
1597 | rb->lcd_bitmap_part( | 1597 | rb->lcd_bitmap_part( |
1598 | brickmania_short_pads, | 1598 | brickmania_short_pads, |
1599 | 0,pad_type*PAD_HEIGHT, | 1599 | 0,pad_type*INT3(PAD_HEIGHT), |
1600 | STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_short_pads, | 1600 | STRIDE( SCREEN_MAIN, BMPWIDTH_brickmania_short_pads, |
1601 | BMPHEIGHT_brickmania_short_pads), | 1601 | BMPHEIGHT_brickmania_short_pads), |
1602 | INT3(pad_pos_x), INT3(PAD_POS_Y), | 1602 | INT3(pad_pos_x), INT3(PAD_POS_Y), |