mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-23 02:29:10 +00:00
core: don't scale emulator background image
Makes the emulator look nicer in tiling window managers.
This commit is contained in:
parent
c0eba979c6
commit
e5bdca655a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user