diff --git a/pong-1/push.lua b/pong-1/push.lua index 0e0709a..026fcb2 100644 --- a/pong-1/push.lua +++ b/pong-1/push.lua @@ -98,7 +98,7 @@ function push:setShader(name, shader) end function push:initValues() - self._PSCALE = self._highdpi and love.window.getPixelScale() or 1 + self._PSCALE = self._highdpi and love.window.getDPIScale() or 1 self._SCALE = { x = self._RWIDTH/self._WWIDTH * self._PSCALE, @@ -218,7 +218,7 @@ function push:switchFullscreen(winw, winh) end function push:resize(w, h) - local pixelScale = love.window.getPixelScale() + local pixelScale = love.window.getDPIScale() if self._highdpi then w, h = w / pixelScale, h / pixelScale end self._RWIDTH = w self._RHEIGHT = h