diff --git a/core/embed/models/T2B1/boards/t2b1-unix.h b/core/embed/models/T2B1/boards/t2b1-unix.h index e4bdfdfbd7..86a485f7ff 100644 --- a/core/embed/models/T2B1/boards/t2b1-unix.h +++ b/core/embed/models/T2B1/boards/t2b1-unix.h @@ -1,8 +1,6 @@ #ifndef BOARDS_T2B1_UNIX_H #define BOARDS_T2B1_UNIX_H -#define MAX_DISPLAY_RESX 128 -#define MAX_DISPLAY_RESY 64 #define DISPLAY_RESX 128 #define DISPLAY_RESY 64 #define TREZOR_FONT_BPP 1 diff --git a/core/embed/models/T2T1/boards/t2t1-unix.h b/core/embed/models/T2T1/boards/t2t1-unix.h index a239e372b9..3903fd3d8a 100644 --- a/core/embed/models/T2T1/boards/t2t1-unix.h +++ b/core/embed/models/T2T1/boards/t2t1-unix.h @@ -2,8 +2,6 @@ #define BOARDS_T2T1_UNIX_H // ILI9341V, GC9307 and ST7789V drivers support 240px x 320px display resolution -#define MAX_DISPLAY_RESX 240 -#define MAX_DISPLAY_RESY 320 #define DISPLAY_RESX 240 #define DISPLAY_RESY 240 #define TREZOR_FONT_BPP 4 diff --git a/core/embed/models/T3B1/boards/t3b1-unix.h b/core/embed/models/T3B1/boards/t3b1-unix.h index 103c4e5b92..65665f32cc 100644 --- a/core/embed/models/T3B1/boards/t3b1-unix.h +++ b/core/embed/models/T3B1/boards/t3b1-unix.h @@ -1,8 +1,6 @@ #ifndef BOARDS_T3B1_UNIX_H #define BOARDS_T3B1_UNIX_H -#define MAX_DISPLAY_RESX 128 -#define MAX_DISPLAY_RESY 64 #define DISPLAY_RESX 128 #define DISPLAY_RESY 64 #define TREZOR_FONT_BPP 1 diff --git a/core/embed/models/T3T1/boards/t3t1-unix.h b/core/embed/models/T3T1/boards/t3t1-unix.h index 4fbca63fae..8e05b0542b 100644 --- a/core/embed/models/T3T1/boards/t3t1-unix.h +++ b/core/embed/models/T3T1/boards/t3t1-unix.h @@ -1,8 +1,6 @@ #ifndef BOARDS_T3T1_UNIX_H #define BOARDS_T3T1_UNIX_H -#define MAX_DISPLAY_RESX 240 -#define MAX_DISPLAY_RESY 240 #define DISPLAY_RESX 240 #define DISPLAY_RESY 240 #define TREZOR_FONT_BPP 4 diff --git a/core/embed/models/T3W1/boards/t3w1-unix.h b/core/embed/models/T3W1/boards/t3w1-unix.h index 5dcb0ac598..ca3fd4298b 100644 --- a/core/embed/models/T3W1/boards/t3w1-unix.h +++ b/core/embed/models/T3W1/boards/t3w1-unix.h @@ -1,12 +1,6 @@ #ifndef BOARDS_T3W1_UNIX_H #define BOARDS_T3W1_UNIX_H -#define MAX_DISPLAY_RESX 380 -#define MAX_DISPLAY_RESY 520 -#define DISPLAY_RESX 380 -#define DISPLAY_RESY 520 -#define TREZOR_FONT_BPP 4 - #define WINDOW_WIDTH 400 #define WINDOW_HEIGHT 600 #define TOUCH_OFFSET_X 80 diff --git a/core/embed/trezorhal/unix/display-unix.c b/core/embed/trezorhal/unix/display-unix.c index 07a45c8226..72350aeb59 100644 --- a/core/embed/trezorhal/unix/display-unix.c +++ b/core/embed/trezorhal/unix/display-unix.c @@ -153,7 +153,7 @@ void display_init_all(void) { } SDL_SetRenderDrawColor(RENDERER, 0, 0, 0, 255); SDL_RenderClear(RENDERER); - BUFFER = SDL_CreateRGBSurface(0, MAX_DISPLAY_RESX, MAX_DISPLAY_RESY, 16, + BUFFER = SDL_CreateRGBSurface(0, DISPLAY_RESX, DISPLAY_RESY, 16, 0xF800, 0x07E0, 0x001F, 0x0000); TEXTURE = SDL_CreateTexture(RENDERER, SDL_PIXELFORMAT_RGB565, SDL_TEXTUREACCESS_STREAMING, DISPLAY_RESX,