scopehal-apps icon indicating copy to clipboard operation
scopehal-apps copied to clipboard

Window scaling calculated improperly

Open VIPQualityPost opened this issue 9 months ago • 3 comments

Ubuntu 24.10 completely bone stock (GNOME / mutter). Rescaling the window does not rescale the contents by the appropriate size, including smashing text when adjusting window height.

Running with arguments --debug --trace VulkanWindow gives attached log.

log.txt

Image

https://github.com/user-attachments/assets/6f357acc-679a-411d-acc3-8298cb70adb0

VIPQualityPost avatar Mar 22 '25 19:03 VIPQualityPost

Looks like VulkanWindow::UpdateFramebuffer is not being called during resizes. This is probably a Wayland-specific bug, possibly a regression introduced by the recent work on resize handling.

azonenberg avatar Mar 22 '25 19:03 azonenberg

Possibly related? https://github.com/ocornut/imgui/issues/8587

azonenberg avatar Apr 23 '25 21:04 azonenberg

Maybe, but I didn't have multiple mouse problem (or I need to double check, at least) and they say they couldn't resize or move window, but I could.

VIPQualityPost avatar Apr 24 '25 01:04 VIPQualityPost

@azonenberg suggested that this it may be related to https://mastodon.social/@[email protected]/114852347369410095. But reverting that commit has no impact.

I toyed around a bit and this works for me: https://github.com/Ablu/scopehal-apps/commit/2e0d4ba6fcc58ff6f0a578b2d5fd77af5d94c622

Need to run now. Can try to build a proper solution later this week.

Ablu avatar Jul 14 '25 17:07 Ablu