diff --git a/pong-10/push.lua b/pong-10/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-10/push.lua +++ b/pong-10/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, diff --git a/pong-11/push.lua b/pong-11/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-11/push.lua +++ b/pong-11/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, diff --git a/pong-12/push.lua b/pong-12/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-12/push.lua +++ b/pong-12/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, diff --git a/pong-2/push.lua b/pong-2/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-2/push.lua +++ b/pong-2/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, diff --git a/pong-3/push.lua b/pong-3/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-3/push.lua +++ b/pong-3/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, diff --git a/pong-4/push.lua b/pong-4/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-4/push.lua +++ b/pong-4/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, diff --git a/pong-5/push.lua b/pong-5/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-5/push.lua +++ b/pong-5/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, diff --git a/pong-6/push.lua b/pong-6/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-6/push.lua +++ b/pong-6/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, diff --git a/pong-8/push.lua b/pong-8/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-8/push.lua +++ b/pong-8/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, diff --git a/pong-9/push.lua b/pong-9/push.lua index 0e0709a..b11b1cc 100644 --- a/pong-9/push.lua +++ b/pong-9/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, diff --git a/pong-final/push_old.lua b/pong-final/push_old.lua index 0e0709a..b11b1cc 100644 --- a/pong-final/push_old.lua +++ b/pong-final/push_old.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,