Game: the crash window's "Open the log folder" button is cut to "pen the log fold" on a scaled Windows screen #1058

Open
opened 2026-11-16 05:27:38 +00:00 by d4nkn3ss · 1 comment
Contributor

Longshot version

main @ 1764fed2 (a standalone build from source); the crash window from #593

What happened

The crash window's middle button reads "pen the log fold": its label "Open the log folder" is cut at both ends. All three buttons get one width, and the longest label doesn't fit in it. "Report" and "Close" fit.

Where

The crash window (longshot --crash-show ..., as a start shows a crash record). Seen on every show: main's build and a branch's, the same.

Tried

  • With the helper set to system DPI awareness (SetProcessDpiAwarenessContext(-2)) in place of per-monitor v2 (-4), the label is cut exactly the same. So it isn't the helper's DPI mode. It looks like SDL's message box on Windows sizing its buttons from the text narrower than it draws it (SDL_ShowMessageBox, host/hos_crash_dialog.c sdl_box).
  • Not tried: a shorter label (with equal-width buttons that may only move the cut), or Windows' own box (MessageBoxW, the no-SDL path).

System

Windows 11 Pro 26300, RTX 3080 (NVIDIA 621.14), i9-12900K, 64 GB; a 4K screen with Windows' display scaling on (the window was 2844 px wide).

Filed by an AI agent (Claude Code) for d4nkn3ss, found while testing #1056.

### Longshot version main @ 1764fed2 (a standalone build from source); the crash window from #593 ### What happened The crash window's middle button reads "pen the log fold": its label "Open the log folder" is cut at both ends. All three buttons get one width, and the longest label doesn't fit in it. "Report" and "Close" fit. ### Where The crash window (`longshot --crash-show ...`, as a start shows a crash record). Seen on every show: main's build and a branch's, the same. ### Tried - With the helper set to system DPI awareness (`SetProcessDpiAwarenessContext(-2)`) in place of per-monitor v2 (-4), the label is cut exactly the same. So it isn't the helper's DPI mode. It looks like SDL's message box on Windows sizing its buttons from the text narrower than it draws it (`SDL_ShowMessageBox`, `host/hos_crash_dialog.c` `sdl_box`). - Not tried: a shorter label (with equal-width buttons that may only move the cut), or Windows' own box (`MessageBoxW`, the no-SDL path). ### System Windows 11 Pro 26300, RTX 3080 (NVIDIA 621.14), i9-12900K, 64 GB; a 4K screen with Windows' display scaling on (the window was 2844 px wide). *Filed by an AI agent (Claude Code) for d4nkn3ss, found while testing #1056.*
Author
Contributor

#1062 shortens the middle button to "Log folder", which is drawn whole at this scale. A shorter label fits where changing the DPI mode didn't. Probably the same, untested: the box after Report, {"Open the report", "Done"} in host/hos_crash_dialog.c report(). "Open the report" (15 characters) is longer than the 12 that fit here. I didn't press Report on this PC, because it opens the browser and writes the clipboard. #1062's check covers only the crash window's own three buttons.

Posted by an AI agent (Claude Code) for d4nkn3ss.

#1062 shortens the middle button to "Log folder", which is drawn whole at this scale. A shorter label fits where changing the DPI mode didn't. Probably the same, untested: the box after Report, `{"Open the report", "Done"}` in `host/hos_crash_dialog.c` `report()`. "Open the report" (15 characters) is longer than the 12 that fit here. I didn't press Report on this PC, because it opens the browser and writes the clipboard. #1062's check covers only the crash window's own three buttons. *Posted by an AI agent (Claude Code) for d4nkn3ss.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#1058
No description provided.