mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 00:52:38 -05:00
Jewels: fix a couple minor menu inconsistencies
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9623 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d01d65f55a
commit
c9ca7ef23d
1 changed files with 18 additions and 14 deletions
|
|
@ -96,8 +96,9 @@ PLUGIN_HEADER
|
|||
#define YOFS 0
|
||||
#define NUM_SCORES 10
|
||||
|
||||
/* use 22x22 tiles (H300, iPod Color) */
|
||||
#elif ((LCD_HEIGHT == 176) && (LCD_WIDTH == 220)) || ((LCD_HEIGHT == 320) && (LCD_WIDTH == 240))
|
||||
/* use 22x22 tiles (H300, iPod Color, Gigabeat) */
|
||||
#elif ((LCD_HEIGHT == 176) && (LCD_WIDTH == 220)) || \
|
||||
((LCD_HEIGHT == 320) && (LCD_WIDTH == 240))
|
||||
#define TILE_WIDTH 22
|
||||
#define TILE_HEIGHT 22
|
||||
#define YOFS 0
|
||||
|
|
@ -1285,6 +1286,7 @@ static int jewels_main(struct game_context* bj) {
|
|||
case MRES_PLAYBACK:
|
||||
playback_control(rb);
|
||||
inmenu = false;
|
||||
selected = false;
|
||||
break;
|
||||
|
||||
case MRES_SAVE:
|
||||
|
|
@ -1305,6 +1307,7 @@ static int jewels_main(struct game_context* bj) {
|
|||
switch(button){
|
||||
case JEWELS_LEFT: /* move cursor left */
|
||||
case (JEWELS_LEFT|BUTTON_REPEAT):
|
||||
if(!inmenu) {
|
||||
if(selected) {
|
||||
bj->score += jewels_swapjewels(bj, x, y, SWAP_LEFT);
|
||||
selected = false;
|
||||
|
|
@ -1312,6 +1315,7 @@ static int jewels_main(struct game_context* bj) {
|
|||
} else {
|
||||
x = (x+BJ_WIDTH-1)%BJ_WIDTH;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case JEWELS_RIGHT: /* move cursor right */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue