1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 23:40:58 +00:00

refactor(core): remove unused MAX_DISPLAY_RESx

[no changelog]
This commit is contained in:
cepetr 2024-10-31 21:15:17 +01:00 committed by cepetr
parent 387d98d6e4
commit cb2c85dc2e
6 changed files with 1 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,