flathub / flathub/io.thp.numptyphysics

Numpty Physics on Endless OS (GNOME / Wayland) – window size workaround endless / wayland

Open Beginner friendly
#124 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

as i did not find any way to increase the windows size in Endless 6.00 with wayland (no X11 anymore)

In platform/sdl2/SDL2Renderer.cpp the window size is hard-coded:
`Vec2 framebuffer_size(800, 480);`
This is why the game always starts tiny.

Instead of fighting fullscreen, the most robust solution was to hardcode a larger window size that:

keeps the original 5:3 aspect ratio (800×480)
fits below the GNOME top bar
the best practical size for a fullHD screen is:
`Vec2 framebuffer_size(1680, 1008);`

After rebuilding the Flatpak with this change, Numpty Physics finally runs at a that size on my Endless OS.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open platform/sdl2/SDL2Renderer.cpp and inspect the hard-coded framebuffer size Vec2 framebuffer_size(800, 480). Update the window dimensions to the proposed 1680×1008 size while preserving the 5:3 aspect ratio, rebuild the Flatpak, and verify that the game opens at the larger size on Endless OS with GNOME/Wayland.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, game-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.