Skip to content

Conversation

@LeonSparta
Copy link
Contributor

  1. Added DPI scaling to the ui_api.cpp, now the SetViewPort, DrawImage, DrawImageQuad, DrawString, DrawStringWidth, GetCursorPos and SetCursorPos function can scale with windows scale settings. Some usage of these functions in lua files from POB and POB 2 are coded in the lua scripts, so they still need to be adjusted accordingly.
    Here are some beautiful 4K screenshots:
Screenshot 2025-09-18 021946 Screenshot 2025-09-18 021953 Screenshot 2025-09-18 022005 Screenshot 2025-09-18 022011

ethanblazkowicz added 2 commits September 17, 2025 22:31
… and DrawStringWidth function can scale with windows scale settings. Some usage of these functions in lua files from POB and POB 2 are hard coded, so they still need to be adjusted accordingly.
…DrawImageQuad, DrawString, DrawStringWidth, GetCursorPos and SetCursorPos function can scale with windows scale settings. Some usage of these functions in lua files from POB and POB 2 are coded in the lua scripts, so they still need to be adjusted accordingly.
@LeonSparta
Copy link
Contributor Author

POB/POB 2 related change: add these lines at line 331 of Main.lua
Screenshot 2025-09-18 022301
and this line to line 66 of Launch.lua
image

LeonSparta and others added 3 commits September 18, 2025 09:29
@Wires77 Wires77 merged commit 9d1a53f into PathOfBuildingCommunity:master Oct 21, 2025
1 check passed
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