Revert the pixel-perfect scale change

GetPerfectPixel switched to UIParent:GetEffectiveScale(), which reports
the true unclamped scale (e.g. 1.42 on the larger pixelperfect presets,
since the module calls UIParent:SetScale past the uiScale cvar's 1.0
cap). At that scale 768/screenheight/scale drops below half a pixel and
the border edgeSize rounds to zero, so button borders disappeared.

The uiScale cvar's <=1.0 cap was load-bearing, not a bug: it keeps the
1px borders from vanishing. Restore the cvar-based measurement and move
pixelperfect back to its original load position.
This commit is contained in:
Brues
2026-08-10 01:27:27 -05:00
parent b6931359b0
commit 9cabdf2974
2 changed files with 5 additions and 14 deletions
+1 -3
View File
@@ -1,7 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<!-- pixelperfect must load first: it sets the UI scale that GetPerfectPixel
measures a real pixel against, and that value is cached on first use. -->
<Include file="..\modules\pixelperfect.lua"/>
<Include file="..\modules\gui.lua"/>
<Include file="..\modules\unlock.lua"/>
<Include file="..\modules\hoverbind.lua"/>
@@ -56,6 +53,7 @@
<Include file="..\modules\gm.lua"/>
<Include file="..\modules\mirrortimers.lua"/>
<Include file="..\modules\feigndeath.lua"/>
<Include file="..\modules\pixelperfect.lua"/>
<Include file="..\modules\hdgraphic.lua"/>
<Include file="..\modules\share.lua"/>
<Include file="..\modules\tracking.lua"/>