Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion inkview/src/screen.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::bindings::APPLICATION_ATTRIBUTE_APPLICATION_READER;
use crate::bindings::{APPLICATION_ATTRIBUTE_APPLICATION_READER, PANEL_FLAGS_PANEL_NO_FB_OFFSET};
use crate::error;
use crate::{bindings::icanvas_s, bindings::Inkview};
use core::ffi::c_int;
Expand Down Expand Up @@ -177,6 +177,9 @@ impl<'a, P> Screen<'a, P> {
unsafe {
iv.SetCurrentApplicationAttribute(APPLICATION_ATTRIBUTE_APPLICATION_READER, 1);
}
unsafe {
iv.SetPanelType(PANEL_FLAGS_PANEL_NO_FB_OFFSET as c_int);
}
// On the emulator the task framebuffer is null, so fall back to the global
// canvas (GetCanvas) — the same `icanvas_s`, populated in both environments.
// We do this with a plain null-check so it also recovers if a real task
Expand Down
Loading