mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 13:42:41 +00:00
refacotr(core): remove unused MAX_DISPLAY_RESx
[no changelog]
This commit is contained in:
parent
789d4f3e7f
commit
5b36ffed1b
@ -1,8 +1,6 @@
|
|||||||
#ifndef BOARDS_T2B1_UNIX_H
|
#ifndef BOARDS_T2B1_UNIX_H
|
||||||
#define 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_RESX 128
|
||||||
#define DISPLAY_RESY 64
|
#define DISPLAY_RESY 64
|
||||||
#define TREZOR_FONT_BPP 1
|
#define TREZOR_FONT_BPP 1
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
#define BOARDS_T2T1_UNIX_H
|
#define BOARDS_T2T1_UNIX_H
|
||||||
|
|
||||||
// ILI9341V, GC9307 and ST7789V drivers support 240px x 320px display resolution
|
// 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_RESX 240
|
||||||
#define DISPLAY_RESY 240
|
#define DISPLAY_RESY 240
|
||||||
#define TREZOR_FONT_BPP 4
|
#define TREZOR_FONT_BPP 4
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#ifndef BOARDS_T3B1_UNIX_H
|
#ifndef BOARDS_T3B1_UNIX_H
|
||||||
#define 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_RESX 128
|
||||||
#define DISPLAY_RESY 64
|
#define DISPLAY_RESY 64
|
||||||
#define TREZOR_FONT_BPP 1
|
#define TREZOR_FONT_BPP 1
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#ifndef BOARDS_T3T1_UNIX_H
|
#ifndef BOARDS_T3T1_UNIX_H
|
||||||
#define 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_RESX 240
|
||||||
#define DISPLAY_RESY 240
|
#define DISPLAY_RESY 240
|
||||||
#define TREZOR_FONT_BPP 4
|
#define TREZOR_FONT_BPP 4
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#ifndef BOARDS_T3W1_UNIX_H
|
#ifndef BOARDS_T3W1_UNIX_H
|
||||||
#define 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_RESX 380
|
||||||
#define DISPLAY_RESY 520
|
#define DISPLAY_RESY 520
|
||||||
#define TREZOR_FONT_BPP 4
|
#define TREZOR_FONT_BPP 4
|
||||||
|
@ -153,7 +153,7 @@ void display_init_all(void) {
|
|||||||
}
|
}
|
||||||
SDL_SetRenderDrawColor(RENDERER, 0, 0, 0, 255);
|
SDL_SetRenderDrawColor(RENDERER, 0, 0, 0, 255);
|
||||||
SDL_RenderClear(RENDERER);
|
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);
|
0xF800, 0x07E0, 0x001F, 0x0000);
|
||||||
TEXTURE = SDL_CreateTexture(RENDERER, SDL_PIXELFORMAT_RGB565,
|
TEXTURE = SDL_CreateTexture(RENDERER, SDL_PIXELFORMAT_RGB565,
|
||||||
SDL_TEXTUREACCESS_STREAMING, DISPLAY_RESX,
|
SDL_TEXTUREACCESS_STREAMING, DISPLAY_RESX,
|
||||||
|
Loading…
Reference in New Issue
Block a user