test PixelPerfect on iMac

This commit is contained in:
Crum
2018-08-12 17:08:17 -05:00
parent 615810f44a
commit 2dc86cee33
+4 -4
View File
@@ -12,10 +12,10 @@ local GetScreenHeight, GetScreenWidth = GetScreenHeight, GetScreenWidth
local scale local scale
function E:UIScale(event) function E:UIScale(event)
if IsMacClient() and self.global.screenheight and self.global.screenwidth and (self.screenheight ~= self.global.screenheight or self.screenwidth ~= self.global.screenwidth) then -- if IsMacClient() and self.global.screenheight and self.global.screenwidth and (self.screenheight ~= self.global.screenheight or self.screenwidth ~= self.global.screenwidth) then
self.screenheight = self.global.screenheight -- self.screenheight = self.global.screenheight
self.screenwidth = self.global.screenwidth -- self.screenwidth = self.global.screenwidth
end -- end
if GetCVar("UIScale") then if GetCVar("UIScale") then
self.global.uiScale = GetCVar("UIScale") self.global.uiScale = GetCVar("UIScale")