From a3684e090ea637168c2542c7b4eaade756de3fe3 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 10 Dec 2021 19:46:09 +0100 Subject: m3k simulator: remove white border Change-Id: I1503dadc966af568c8a4482e1d7f5641092594f0 --- firmware/target/hosted/sdl/sim-ui-defines.h | 6 +++--- uisimulator/bitmaps/UI-fiiom3k.bmp | Bin 919294 -> 913878 bytes 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 @@ #elif defined(FIIO_M3K) || defined(FIIO_M3K_LINUX) #define UI_TITLE "FiiO M3K" -#define UI_WIDTH 335 /* width of GUI window */ -#define UI_HEIGHT 686 /* height of GUI window */ +#define UI_WIDTH 334 /* width of GUI window */ +#define UI_HEIGHT 684 /* height of GUI window */ #define UI_LCD_POSX 49 -#define UI_LCD_POSY 38 +#define UI_LCD_POSY 37 #elif defined(SHANLING_Q1) diff --git a/uisimulator/bitmaps/UI-fiiom3k.bmp b/uisimulator/bitmaps/UI-fiiom3k.bmp index bb168000f2..54438ea06f 100644 Binary files a/uisimulator/bitmaps/UI-fiiom3k.bmp and b/uisimulator/bitmaps/UI-fiiom3k.bmp 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) } struct button_map bm[] = { - { SDLK_ESCAPE, 14, 64, 15, "Power" }, - { SDLK_KP_MINUS, 14, 220, 15, "Volume -" }, - { SDLK_KP_PLUS, 14, 140, 15, "Volume +" }, - { SDLK_SPACE, 14, 300, 15, "Play" }, - { SDLK_UP, 170, 445, 25, "Up" }, - { SDLK_RETURN, 170, 520, 25, "Select" }, - { SDLK_DOWN, 170, 600, 25, "Down" }, - { SDLK_INSERT, 79, 428, 25, "Menu" }, - { SDLK_LEFT, 79, 621, 25, "Left" }, - { SDLK_RIGHT, 260, 621, 25, "Right" }, - { SDLK_BACKSPACE, 260, 428, 25, "Back" }, + { SDLK_ESCAPE, 14, 63, 15, "Power" }, + { SDLK_KP_MINUS, 14, 219, 15, "Volume -" }, + { SDLK_KP_PLUS, 14, 139, 15, "Volume +" }, + { SDLK_SPACE, 14, 299, 15, "Play" }, + { SDLK_UP, 170, 444, 25, "Up" }, + { SDLK_RETURN, 170, 519, 25, "Select" }, + { SDLK_DOWN, 170, 599, 25, "Down" }, + { SDLK_INSERT, 79, 427, 25, "Menu" }, + { SDLK_LEFT, 79, 620, 25, "Left" }, + { SDLK_RIGHT, 260, 620, 25, "Right" }, + { SDLK_BACKSPACE, 260, 427, 25, "Back" }, { 0, 0, 0, 0, "None" } }; -- cgit v1.2.3