From 51b703cb1a409f7f9dcc9a2dc2dc9e4c4e798d8f Mon Sep 17 00:00:00 2001 From: cepetr Date: Mon, 30 Sep 2024 18:50:45 +0200 Subject: [PATCH] fix(core): remove unnecessary framebuffer copying [no changelog] --- core/embed/trezorhal/stm32f4/xdisplay/st-7789/display_fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/embed/trezorhal/stm32f4/xdisplay/st-7789/display_fb.c b/core/embed/trezorhal/stm32f4/xdisplay/st-7789/display_fb.c index 412e359f1..8e5fecb7d 100644 --- a/core/embed/trezorhal/stm32f4/xdisplay/st-7789/display_fb.c +++ b/core/embed/trezorhal/stm32f4/xdisplay/st-7789/display_fb.c @@ -166,10 +166,12 @@ display_fb_info_t display_get_frame_buffer(void) { if (state == FB_STATE_EMPTY) { // First use of this buffer, copy the previous buffer into it #if (FRAME_BUFFER_COUNT > 1) +#ifndef NEW_RENDERING uint8_t *src = get_fb_ptr((FRAME_BUFFER_COUNT + drv->queue.wix - 1) % FRAME_BUFFER_COUNT); uint8_t *dst = get_fb_ptr(drv->queue.wix); memcpy(dst, src, PHYSICAL_FRAME_BUFFER_SIZE); +#endif #endif };