diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-12-10 19:46:09 +0100 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2021-12-10 19:46:09 +0100 |
commit | a3684e090ea637168c2542c7b4eaade756de3fe3 (patch) | |
tree | f8d3983f3d6d07e287202d5386fb707a529cba0e | |
parent | f1eb0483d6cafd19ac7e813ccf3b7fa33405502e (diff) | |
download | rockbox-a3684e090ea637168c2542c7b4eaade756de3fe3.tar.gz rockbox-a3684e090ea637168c2542c7b4eaade756de3fe3.zip |
m3k simulator: remove white border
Change-Id: I1503dadc966af568c8a4482e1d7f5641092594f0
-rw-r--r-- | firmware/target/hosted/sdl/sim-ui-defines.h | 6 | ||||
-rw-r--r-- | uisimulator/bitmaps/UI-fiiom3k.bmp | bin | 919294 -> 913878 bytes | |||
-rw-r--r-- | uisimulator/buttonmap/fiio-m3k.c | 22 |
3 files changed, 14 insertions, 14 deletions
diff --git a/firmware/target/hosted/sdl/sim-ui-defines.h b/firmware/target/hosted/sdl/sim-ui-defines.h index 6235f106d4..7d60deac34 100644 --- a/firmware/target/hosted/sdl/sim-ui-defines.h +++ b/firmware/target/hosted/sdl/sim-ui-defines.h | |||
@@ -523,10 +523,10 @@ | |||
523 | 523 | ||
524 | #elif defined(FIIO_M3K) || defined(FIIO_M3K_LINUX) | 524 | #elif defined(FIIO_M3K) || defined(FIIO_M3K_LINUX) |
525 | #define UI_TITLE "FiiO M3K" | 525 | #define UI_TITLE "FiiO M3K" |
526 | #define UI_WIDTH 335 /* width of GUI window */ | 526 | #define UI_WIDTH 334 /* width of GUI window */ |
527 | #define UI_HEIGHT 686 /* height of GUI window */ | 527 | #define UI_HEIGHT 684 /* height of GUI window */ |
528 | #define UI_LCD_POSX 49 | 528 | #define UI_LCD_POSX 49 |
529 | #define UI_LCD_POSY 38 | 529 | #define UI_LCD_POSY 37 |
530 | 530 | ||
531 | 531 | ||
532 | #elif defined(SHANLING_Q1) | 532 | #elif defined(SHANLING_Q1) |
diff --git a/uisimulator/bitmaps/UI-fiiom3k.bmp b/uisimulator/bitmaps/UI-fiiom3k.bmp index bb168000f2..54438ea06f 100644 --- a/uisimulator/bitmaps/UI-fiiom3k.bmp +++ b/uisimulator/bitmaps/UI-fiiom3k.bmp | |||
Binary files differ | |||
diff --git a/uisimulator/buttonmap/fiio-m3k.c b/uisimulator/buttonmap/fiio-m3k.c index 45d0ab6ae6..ff7a95e82c 100644 --- a/uisimulator/buttonmap/fiio-m3k.c +++ b/uisimulator/buttonmap/fiio-m3k.c | |||
@@ -84,16 +84,16 @@ int key_to_button(int keyboard_button) | |||
84 | } | 84 | } |
85 | 85 | ||
86 | struct button_map bm[] = { | 86 | struct button_map bm[] = { |
87 | { SDLK_ESCAPE, 14, 64, 15, "Power" }, | 87 | { SDLK_ESCAPE, 14, 63, 15, "Power" }, |
88 | { SDLK_KP_MINUS, 14, 220, 15, "Volume -" }, | 88 | { SDLK_KP_MINUS, 14, 219, 15, "Volume -" }, |
89 | { SDLK_KP_PLUS, 14, 140, 15, "Volume +" }, | 89 | { SDLK_KP_PLUS, 14, 139, 15, "Volume +" }, |
90 | { SDLK_SPACE, 14, 300, 15, "Play" }, | 90 | { SDLK_SPACE, 14, 299, 15, "Play" }, |
91 | { SDLK_UP, 170, 445, 25, "Up" }, | 91 | { SDLK_UP, 170, 444, 25, "Up" }, |
92 | { SDLK_RETURN, 170, 520, 25, "Select" }, | 92 | { SDLK_RETURN, 170, 519, 25, "Select" }, |
93 | { SDLK_DOWN, 170, 600, 25, "Down" }, | 93 | { SDLK_DOWN, 170, 599, 25, "Down" }, |
94 | { SDLK_INSERT, 79, 428, 25, "Menu" }, | 94 | { SDLK_INSERT, 79, 427, 25, "Menu" }, |
95 | { SDLK_LEFT, 79, 621, 25, "Left" }, | 95 | { SDLK_LEFT, 79, 620, 25, "Left" }, |
96 | { SDLK_RIGHT, 260, 621, 25, "Right" }, | 96 | { SDLK_RIGHT, 260, 620, 25, "Right" }, |
97 | { SDLK_BACKSPACE, 260, 428, 25, "Back" }, | 97 | { SDLK_BACKSPACE, 260, 427, 25, "Back" }, |
98 | { 0, 0, 0, 0, "None" } | 98 | { 0, 0, 0, 0, "None" } |
99 | }; | 99 | }; |