1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

feat(core/model_r): only refresh screen on display_refresh

Given that on Model R we have a frame buffer, let's not push out pixels
one by one.

[no changelog]
This commit is contained in:
matejcik 2022-09-09 14:31:17 +02:00 committed by matejcik
parent 4827cef25e
commit f1c7129d06

View File

@ -79,8 +79,6 @@ void display_pixeldata(uint16_t c) {
DISPLAY_STATE.RAM[DISPLAY_STATE.row / 8][DISPLAY_STATE.col] = data;
DATA(data);
DISPLAY_STATE.col++;
if (DISPLAY_STATE.col > DISPLAY_STATE.window_x1) {
@ -349,7 +347,14 @@ void display_init(void) {
display_init_seq();
}
void display_refresh(void) {}
void display_refresh(void) {
for (int y = 0; y < (DISPLAY_RESY / 8); y++) {
display_set_page_and_col(y, 0);
for (int x = 0; x < DISPLAY_RESX; x++) {
DATA(DISPLAY_STATE.RAM[y][x]);
}
}
}
const char *display_save(const char *prefix) { return NULL; }