A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

Pegbox: Add support for 640x480 screens

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21987 a1c6a512-1295-4272-9138-f99709370657

+29 -9
+24 -8
apps/plugins/bitmaps/native/SOURCES
··· 231 231 232 232 /* Flipit */ 233 233 #ifdef HAVE_LCD_COLOR 234 - #if LCD_WIDTH >= 280 && LCD_HEIGHT >= 234 234 + #if LCD_WIDTH >= 480 235 + flipit_cursor.112x112x16.bmp 236 + flipit_tokens.112x224x16.bmp 237 + #elif LCD_WIDTH >= 280 && LCD_HEIGHT >= 234 235 238 flipit_cursor.56x56x16.bmp 236 239 flipit_tokens.56x112x16.bmp 237 240 #elif LCD_WIDTH >= 200 && LCD_HEIGHT >= 170 ··· 376 379 /* PegBox */ 377 380 #ifdef HAVE_LCD_COLOR 378 381 /* currently only LCD_WIDTH is important, e.g. Nano and e200 use the same set */ 379 - #if LCD_WIDTH >= 320 382 + #if LCD_WIDTH >= 640 383 + pegbox_pieces.48x48x16.bmp 384 + pegbox_header.640x80x16.bmp 385 + #elif LCD_WIDTH >= 320 380 386 pegbox_pieces.24x24x16.bmp 381 387 pegbox_header.320x40x16.bmp 382 388 #elif LCD_WIDTH >= 240 ··· 521 527 522 528 #ifdef HAVE_LCD_COLOR 523 529 #if SOKOBAN_TILESIZE >= 14 530 + sokoban_tiles.28x28x16.bmp 531 + #elif SOKOBAN_TILESIZE >= 14 524 532 sokoban_tiles.14x14x16.bmp 525 533 #elif SOKOBAN_TILESIZE >= 12 526 534 sokoban_tiles.12x12x16.bmp ··· 598 606 #endif 599 607 #endif 600 608 609 + #if (LCD_HEIGHT/10) < (LCD_WIDTH/16) 610 + #define STAR_TILESIZE (LCD_HEIGHT/10) 611 + #else 612 + #define STAR_TILESIZE (LCD_WIDTH/16) 613 + #endif 614 + 601 615 /* Star */ 602 616 #ifdef HAVE_LCD_COLOR 603 - #if LCD_WIDTH >= 320 && LCD_HEIGHT >= 188 617 + #if (STAR_TILESIZE >= 40) 618 + star_tiles.40x40.bmp 619 + #elif (STAR_TILESIZE >= 20) 604 620 star_tiles.20x20.bmp 605 - #elif LCD_WIDTH >= 240 && LCD_HEIGHT >= 143 621 + #elif (STAR_TILESIZE >= 15) 606 622 star_tiles.15x15.bmp 607 - #elif LCD_WIDTH >= 208 && LCD_HEIGHT >= 125 623 + #elif (STAR_TILESIZE >= 13) 608 624 star_tiles.13x13.bmp 609 - #elif LCD_WIDTH >= 176 && LCD_HEIGHT >= 107 625 + #elif (STAR_TILESIZE >= 11) 610 626 star_tiles.11x11.bmp 611 - #elif LCD_WIDTH >= 160 && LCD_HEIGHT >= 98 627 + #elif (STAR_TILESIZE >= 10) 612 628 star_tiles.10x10.bmp 613 - #elif LCD_WIDTH >= 128 && LCD_HEIGHT >= 80 629 + #elif (STAR_TILESIZE >= 8) 614 630 star_tiles.8x8.bmp 615 631 #endif 616 632 #elif LCD_DEPTH > 1 /* grey */
apps/plugins/bitmaps/native/pegbox_header.640x80x16.bmp

This is a binary file and will not be displayed.

apps/plugins/bitmaps/native/pegbox_pieces.48x48x16.bmp

This is a binary file and will not be displayed.

+5 -1
apps/plugins/pegbox.c
··· 466 466 #define BOARD_Y HEADER_HEIGHT 467 467 #endif 468 468 469 - #if LCD_WIDTH >= 320 469 + #if LCD_WIDTH >= 640 470 + #define LEVEL_TEXT_X 118 471 + #define PEGS_TEXT_X 552 472 + #define TEXT_Y 56 473 + #elif LCD_WIDTH >= 320 470 474 #define LEVEL_TEXT_X 59 471 475 #define PEGS_TEXT_X 276 472 476 #define TEXT_Y 28