From 1be4059fd09d020e373189a16b8bbc6649bd3586 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sun, 18 Nov 2018 09:29:16 +0200 Subject: [PATCH] [DISP] never inline display fns to investigate that self.depth problem --- src/platform/display.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/display.rs b/src/platform/display.rs index 86cb237..716c4d7 100644 --- a/src/platform/display.rs +++ b/src/platform/display.rs @@ -105,7 +105,7 @@ impl Display { }) } - #[inline] + #[inline(never)] fn write_pixel_component(&self, x: u32, y: u32, chan: u16, c: u32) { unsafe { *(self.base as *mut u8).offset( @@ -116,6 +116,7 @@ impl Display { } } + #[inline(never)] pub fn putpixel(&mut self, x: u32, y: u32, color: u32) { self.write_pixel_component(x, y, 0, color & 0xff); self.write_pixel_component(x, y, 1, (color >> 8) & 0xff);