mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 09:28:13 +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:
parent
4827cef25e
commit
f1c7129d06
@ -79,8 +79,6 @@ void display_pixeldata(uint16_t c) {
|
|||||||
|
|
||||||
DISPLAY_STATE.RAM[DISPLAY_STATE.row / 8][DISPLAY_STATE.col] = data;
|
DISPLAY_STATE.RAM[DISPLAY_STATE.row / 8][DISPLAY_STATE.col] = data;
|
||||||
|
|
||||||
DATA(data);
|
|
||||||
|
|
||||||
DISPLAY_STATE.col++;
|
DISPLAY_STATE.col++;
|
||||||
|
|
||||||
if (DISPLAY_STATE.col > DISPLAY_STATE.window_x1) {
|
if (DISPLAY_STATE.col > DISPLAY_STATE.window_x1) {
|
||||||
@ -349,7 +347,14 @@ void display_init(void) {
|
|||||||
display_init_seq();
|
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; }
|
const char *display_save(const char *prefix) { return NULL; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user