View Single Post
08-20-11, 01:40 PM   #11
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
I see. Still, better to calculate the optimal value and set it to that.

I use this now:

Code:
local scaler = CreateFrame("Frame")
scaler:RegisterEvent("VARIABLES_LOADED")
scaler:RegisterEvent("UI_SCALE_CHANGED")
scaler:SetScript("OnEvent", function()
	if 768/string.match(({GetScreenResolutions()})[GetCurrentResolution()], "%d+x(%d+)") < .64 then
		UIParent:SetScale(768/string.match(({GetScreenResolutions()})[GetCurrentResolution()], "%d+x(%d+)"))
	end
end)
(Registering UI scale change because I switch in and out of windowed mode a lot)

And everything works fine! (well, my GPU diode is chilling at 85°C but that's a different story...)
  Reply With Quote