Skip to content

fix: report the visible height when the panel offsets the framebuffer - #30

Open
Kernald wants to merge 1 commit into
simmsb:masterfrom
Kernald:panel-offset
Open

Kernald wants to merge 1 commit into
simmsb:masterfrom
Kernald:panel-offset

Conversation

@Kernald

@Kernald Kernald commented Nov 11, 2026

Copy link
Copy Markdown

With the panel enabled, the framebuffer starts below the panel but WhichScreen still reported the full screen height, so the last rows that an app drew showed over the panel.

@Kernald
Kernald marked this pull request as draft November 11, 2026 03:45
@Kernald

Kernald commented Nov 11, 2026

Copy link
Copy Markdown
Author

While this fixes the issue on the emulator, it looks like there's a race condition on a physical device (Era) - trying to figure that out.

With the panel enabled, the framebuffer starts below the panel but
WhichScreen still reported the full screen height, so the last rows that
an app drew showed over the panel. iv_main keeps the panel offset from
EVT_INIT, the only time a device reports it.
@Kernald
Kernald marked this pull request as ready for review November 11, 2026 04:09
@Kernald

Kernald commented Nov 11, 2026

Copy link
Copy Markdown
Author

Fixed properly on both this time. As an aside, I suspect not a lot of users have tried to keep the panel visible - Screen::new forces PANEL_NO_FB_OFFSET, which takes over the panel's band, but WhichScreen::new honours whatever panel type the app chooses - it might e worth refactoring this API in a way that lets the app chose entirely and be consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant