Skip to content

Commit

Permalink
fix scaling at 5k resolution (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikipe authored May 6, 2023
1 parent 2bc97a1 commit 5df4c91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/Functions/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ end

function F.PixelPerfect()
local perfectScale = 768 / E.physicalHeight
if E.physicalHeight == 2160 then perfectScale = perfectScale * 2 end
if E.physicalHeight == 2160 or E.physicalHeight == 2880 then
perfectScale = perfectScale * 2
end
return perfectScale
end

Expand Down

0 comments on commit 5df4c91

Please sign in to comment.