mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 06:18:07 +00:00
feat(core): T2B1 final design for emulator
This commit is contained in:
parent
239439931d
commit
4f2c639ed7
1177
core/embed/trezorhal/unix/background_T2B1.h
Normal file
1177
core/embed/trezorhal/unix/background_T2B1.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
core/embed/trezorhal/unix/background_T2B1.png
Normal file
BIN
core/embed/trezorhal/unix/background_T2B1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
@ -50,13 +50,20 @@
|
|||||||
#define TOUCH_OFFSET_Y 110
|
#define TOUCH_OFFSET_Y 110
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined TREZOR_MODEL_1 || defined TREZOR_MODEL_R
|
#elif defined TREZOR_MODEL_1
|
||||||
|
|
||||||
#define WINDOW_WIDTH 200
|
#define WINDOW_WIDTH 200
|
||||||
#define WINDOW_HEIGHT 340
|
#define WINDOW_HEIGHT 340
|
||||||
#define TOUCH_OFFSET_X 36
|
#define TOUCH_OFFSET_X 36
|
||||||
#define TOUCH_OFFSET_Y 92
|
#define TOUCH_OFFSET_Y 92
|
||||||
|
|
||||||
|
#elif defined TREZOR_MODEL_R
|
||||||
|
|
||||||
|
#define WINDOW_WIDTH 193
|
||||||
|
#define WINDOW_HEIGHT 339
|
||||||
|
#define TOUCH_OFFSET_X 32
|
||||||
|
#define TOUCH_OFFSET_Y 84
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error Unknown Trezor model
|
#error Unknown Trezor model
|
||||||
#endif
|
#endif
|
||||||
@ -198,10 +205,14 @@ void display_init(void) {
|
|||||||
#include "background_T.h"
|
#include "background_T.h"
|
||||||
BACKGROUND = IMG_LoadTexture_RW(
|
BACKGROUND = IMG_LoadTexture_RW(
|
||||||
RENDERER, SDL_RWFromMem(background_T_jpg, background_T_jpg_len), 0);
|
RENDERER, SDL_RWFromMem(background_T_jpg, background_T_jpg_len), 0);
|
||||||
#elif defined TREZOR_MODEL_1 || defined TREZOR_MODEL_R
|
#elif defined TREZOR_MODEL_1
|
||||||
#include "background_1.h"
|
#include "background_1.h"
|
||||||
BACKGROUND = IMG_LoadTexture_RW(
|
BACKGROUND = IMG_LoadTexture_RW(
|
||||||
RENDERER, SDL_RWFromMem(background_1_jpg, background_1_jpg_len), 0);
|
RENDERER, SDL_RWFromMem(background_1_jpg, background_1_jpg_len), 0);
|
||||||
|
#elif defined TREZOR_MODEL_R
|
||||||
|
#include "background_T2B1.h"
|
||||||
|
BACKGROUND = IMG_LoadTexture_RW(
|
||||||
|
RENDERER, SDL_RWFromMem(background_T2B1_png, background_T2B1_png_len), 0);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (BACKGROUND) {
|
if (BACKGROUND) {
|
||||||
|
Loading…
Reference in New Issue
Block a user