1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-22 05:10:56 +00:00

refactor(core): remove redundant TREZOR_FONT_BPP

[no changelog]
This commit is contained in:
cepetr 2024-10-31 21:15:17 +01:00
parent 5b36ffed1b
commit 5c40ec99cf
11 changed files with 2 additions and 13 deletions

View File

@ -3,7 +3,6 @@
#define DISPLAY_RESX 128
#define DISPLAY_RESY 64
#define TREZOR_FONT_BPP 1
#define WINDOW_WIDTH 193
#define WINDOW_HEIGHT 339

View File

@ -1,10 +1,8 @@
#ifndef BOARDS_T2T1_UNIX_H
#define BOARDS_T2T1_UNIX_H
// ILI9341V, GC9307 and ST7789V drivers support 240px x 320px display resolution
#define DISPLAY_RESX 240
#define DISPLAY_RESY 240
#define TREZOR_FONT_BPP 4
#define ORIENTATION_NSEW 1

View File

@ -3,7 +3,6 @@
#define DISPLAY_RESX 128
#define DISPLAY_RESY 64
#define TREZOR_FONT_BPP 1
#define WINDOW_WIDTH 193
#define WINDOW_HEIGHT 339

View File

@ -3,7 +3,6 @@
#define DISPLAY_RESX 240
#define DISPLAY_RESY 240
#define TREZOR_FONT_BPP 4
#define WINDOW_WIDTH 400
#define WINDOW_HEIGHT 600

View File

@ -3,7 +3,6 @@
#define DISPLAY_RESX 380
#define DISPLAY_RESY 520
#define TREZOR_FONT_BPP 4
#define WINDOW_WIDTH 400
#define WINDOW_HEIGHT 600

View File

@ -4,7 +4,6 @@
#include STM32_HAL_H
#define TREZOR_FONT_BPP 4
#define DISPLAY_FRAMEBUFFER_WIDTH DISPLAY_RESX
#define DISPLAY_FRAMEBUFFER_HEIGHT DISPLAY_RESY
#define DISPLAY_FRAMEBUFFER_OFFSET_X 0

View File

@ -14,7 +14,6 @@ typedef struct {
#define MAX_DISPLAY_RESX 240
#define MAX_DISPLAY_RESY 320
#define DISPLAY_COLOR_MODE DMA2D_OUTPUT_RGB565
#define TREZOR_FONT_BPP 4
#ifdef DISPLAY_I8080_16BIT_DW
#define DISP_MEM_TYPE uint16_t

View File

@ -5,6 +5,5 @@
#define MAX_DISPLAY_RESY 128
#define DISPLAY_RESX 128
#define DISPLAY_RESY 128
#define TREZOR_FONT_BPP 1
#endif //_UG_2828TSWIG01_H

View File

@ -5,6 +5,5 @@
#define MAX_DISPLAY_RESY 64
#define DISPLAY_RESX 128
#define DISPLAY_RESY 64
#define TREZOR_FONT_BPP 1
#endif //_VG_2864KSWEG01_H

View File

@ -8,7 +8,6 @@
#define DISPLAY_FRAMEBUFFER_HEIGHT 480
#define DISPLAY_FRAMEBUFFER_OFFSET_X 120
#define DISPLAY_FRAMEBUFFER_OFFSET_Y 120
#define TREZOR_FONT_BPP 4
#define DISPLAY_EFFICIENT_CLEAR 1

View File

@ -153,8 +153,8 @@ void display_init_all(void) {
}
SDL_SetRenderDrawColor(RENDERER, 0, 0, 0, 255);
SDL_RenderClear(RENDERER);
BUFFER = SDL_CreateRGBSurface(0, DISPLAY_RESX, DISPLAY_RESY, 16,
0xF800, 0x07E0, 0x001F, 0x0000);
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,
DISPLAY_RESY);