From e5bdca655ae9ac43966228d7433a02ad7cd5502b Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Fri, 31 Jul 2020 12:27:43 +0200 Subject: [PATCH] core: don't scale emulator background image Makes the emulator look nicer in tiling window managers. --- core/embed/extmod/modtrezorui/display-unix.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/extmod/modtrezorui/display-unix.h b/core/embed/extmod/modtrezorui/display-unix.h index fb4efd64a..d5fcf2b6a 100644 --- a/core/embed/extmod/modtrezorui/display-unix.h +++ b/core/embed/extmod/modtrezorui/display-unix.h @@ -191,7 +191,8 @@ void display_refresh(void) { display_init(); } if (BACKGROUND) { - SDL_RenderCopy(RENDERER, BACKGROUND, NULL, NULL); + const SDL_Rect r = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT}; + SDL_RenderCopy(RENDERER, BACKGROUND, NULL, &r); } else { SDL_RenderClear(RENDERER); }