Quantcast
WoWInterface - View Single Post - Pixel Perfect UIScale
View Single Post
02-28-20, 01:17 PM   #3
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,117
You need to check if GetPhysicalScreenSize()'s second return is >= 1200; if it is, modify SDPhantom's method to scale UIParent.
Code:
local physicalWidth, physicalHeight = GetPhysicalScreenSize()
local pixelPerfectScale = 768 / physicalHeight
if physicalHeight >= 1200 then
    UIParent:SetScale(pixelPerfectScale)
else
    SetCVar("useUiScale", 1)
    SetCVar("uiScale", pixelPerfectScale)
end
Source: https://wow.gamepedia.com/UI_Scale#P...ct_UIs_and_you

Last edited by myrroddin : 02-28-20 at 04:52 PM. Reason: enable custom scale via CVar with useUiScale
  Reply With Quote