Skip to content

Let no-WM window to match backend dimensions#159

Merged
jserv merged 1 commit intomainfrom
fix-no-wm
Apr 25, 2026
Merged

Let no-WM window to match backend dimensions#159
jserv merged 1 commit intomainfrom
fix-no-wm

Conversation

@jserv
Copy link
Copy Markdown
Contributor

@jserv jserv commented Apr 25, 2026

The fbdev backend was creating a screen using the caller-supplied dimensions (640x480 from main.c) instead of the actual framebuffer resolution, causing coordinate space mismatch and clipped rendering on smaller displays like the STM32F429 Discovery QVGA (320x240).

In no-WM mode, the single window now unconditionally covers the entire screen rather than merely clamping to it. The screen dimensions are authoritative and come from the backend -- hardware resolution for fbdev, window size for SDL, etc.


Summary by cubic

Make the no-WM window always match the backend’s screen size and use the real framebuffer resolution in fbdev. This fixes coordinate mismatches and clipped rendering on smaller displays.

  • Bug Fixes
    • fbdev: create the screen using fb_var.xres/yres instead of caller-provided width/height.
    • no-WM: ignore requested size/position; the single window now always covers the entire backend-provided screen.

Written for commit 125e617. Summary will update on new commits.

The fbdev backend was creating a screen using the caller-supplied
dimensions (640x480 from main.c) instead of the actual framebuffer
resolution, causing coordinate space mismatch and clipped rendering
on smaller displays like the STM32F429 Discovery QVGA (320x240).

In no-WM mode, the single window now unconditionally covers the entire
screen rather than merely clamping to it. The screen dimensions are
authoritative and come from the backend -- hardware resolution for
fbdev, window size for SDL, etc.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@jserv jserv merged commit e116362 into main Apr 25, 2026
9 checks passed
@jserv jserv deleted the fix-no-wm branch April 25, 2026 14:42
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