diff options
Diffstat (limited to 'apps/plugins/sliding_puzzle.c')
-rw-r--r-- | apps/plugins/sliding_puzzle.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c index 78ec5aa5e5..af7fe83299 100644 --- a/apps/plugins/sliding_puzzle.c +++ b/apps/plugins/sliding_puzzle.c | |||
@@ -404,8 +404,9 @@ static void draw_spot(int p, int x, int y) | |||
404 | /* the bottom-right cell of the default sliding_puzzle image is | 404 | /* the bottom-right cell of the default sliding_puzzle image is |
405 | an appropriate hole graphic */ | 405 | an appropriate hole graphic */ |
406 | rb->lcd_bitmap_part(sliding_puzzle, ((p-1)%SPOTS_X)*SPOTS_WIDTH, | 406 | rb->lcd_bitmap_part(sliding_puzzle, ((p-1)%SPOTS_X)*SPOTS_WIDTH, |
407 | ((p-1)/SPOTS_X)*SPOTS_HEIGHT, | 407 | ((p-1)/SPOTS_X)*SPOTS_HEIGHT, |
408 | IMAGE_WIDTH, x, y, SPOTS_WIDTH, SPOTS_HEIGHT); | 408 | STRIDE(BMPWIDTH_sliding_puzzle, BMPHEIGHT_sliding_puzzle), |
409 | x, y, SPOTS_WIDTH, SPOTS_HEIGHT); | ||
409 | #else | 410 | #else |
410 | /* just draw a black rectangle */ | 411 | /* just draw a black rectangle */ |
411 | int old_fg = rb->lcd_get_foreground(); | 412 | int old_fg = rb->lcd_get_foreground(); |
@@ -417,8 +418,9 @@ static void draw_spot(int p, int x, int y) | |||
417 | else if (picmode != PICMODE_NUMERALS) | 418 | else if (picmode != PICMODE_NUMERALS) |
418 | { | 419 | { |
419 | rb->lcd_bitmap_part( puzzle_bmp_ptr, ((p-1)%SPOTS_X)*SPOTS_WIDTH, | 420 | rb->lcd_bitmap_part( puzzle_bmp_ptr, ((p-1)%SPOTS_X)*SPOTS_WIDTH, |
420 | ((p-1)/SPOTS_X)*SPOTS_HEIGHT, | 421 | ((p-1)/SPOTS_X)*SPOTS_HEIGHT, |
421 | IMAGE_WIDTH, x, y, SPOTS_WIDTH, SPOTS_HEIGHT); | 422 | STRIDE(BMPWIDTH_sliding_puzzle, BMPHEIGHT_sliding_puzzle), |
423 | x, y, SPOTS_WIDTH, SPOTS_HEIGHT); | ||
422 | } else { | 424 | } else { |
423 | rb->lcd_drawrect(x, y, SPOTS_WIDTH, SPOTS_HEIGHT); | 425 | rb->lcd_drawrect(x, y, SPOTS_WIDTH, SPOTS_HEIGHT); |
424 | rb->lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | 426 | rb->lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); |