Skip to content

Conversation

@meehl
Copy link

@meehl meehl commented Dec 3, 2025

GetScreenSize returns the size in physical units if the DPI_AWARE flag is passed to RenderInit. The error popup and restart screen have the wrong position and size at UI scaling factor != 1.0 due to missing conversions to virtual units.

This introduces a utility function for getting the virtual screen size and uses it to add the missing conversions.

Before screenshot:

image

After screenshot:

image

`GetScreenSize` returns the size in physical units if the "DPI_AWARE" flag
is passed to `RenderInit`. The error popup and restart screen have the
wrong position and size at UI scaling factor != 1.0 due to missing
conversions to virtual units.

This introduces a utility function for getting the virtual screen size and
uses it to add the missing conversions.
@meehl
Copy link
Author

meehl commented Dec 3, 2025

This also needs to be applied to PoB2. It looks like this can be automated by setting a label but i can also do it manually if wanted.

@Nightblade
Copy link
Contributor

Nightblade commented Dec 3, 2025

There's some GetScreenSize calls in src/Export/Launch.lua and src/Export/Main.lua, and don't forget to remove the stub from HeadlessWrapper.lua too! 😁

edit: derp

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.

2 participants