fix(core): fix build on macos (do not merge)

[no changelog]
cepetr/ui-t3t1/apple-fix
cepetr 4 weeks ago
parent a301385bcb
commit 68d7a4c332

@ -12,10 +12,10 @@ pub fn render_on_display<'a, F>(clip: Option<Rect>, bg_color: Option<Color>, fun
where
F: FnOnce(&mut DirectRenderer<'_, 'a, Rgb565Canvas<'a>>),
{
#[link_section = ".no_dma_buffers"]
//#[link_section = ".no_dma_buffers"]
static mut BUMP_A: Bump<[u8; 40 * 1024]> = Bump::uninit();
#[link_section = ".buf"]
//#[link_section = ".buf"]
static mut BUMP_B: Bump<[u8; 16 * 1024]> = Bump::uninit();
let bump_a = unsafe { &mut *core::ptr::addr_of_mut!(BUMP_A) };

@ -165,7 +165,7 @@ void display_init(void) {
#ifdef __APPLE__
// macOS Mojave SDL black screen workaround
SDL_PumpEvents();
SDL_SetWindowSize(WINDOW, WINDOW_WIDTH, WINDOW_HEIGHT);
SDL_SetWindowSize(drv->window, WINDOW_WIDTH, WINDOW_HEIGHT);
#endif
#ifdef TREZOR_EMULATOR_RASPI
#include "background_raspi.h"

Loading…
Cancel
Save