summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/love2d')
-rw-r--r--meta/3rd/love2d/library/love.lua2
-rw-r--r--meta/3rd/love2d/library/love/graphics.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/3rd/love2d/library/love.lua b/meta/3rd/love2d/library/love.lua
index fcdcc98e..7ca517a5 100644
--- a/meta/3rd/love2d/library/love.lua
+++ b/meta/3rd/love2d/library/love.lua
@@ -170,7 +170,7 @@ function Object:typeOf(name) end
---
---The error handler, used to display error messages.
---
----@alias love.errorhandler fun(msg: string)
+---@alias love.errorhandler fun(msg: string):function
---
---Callback function triggered when a file is dragged and dropped onto the window.
diff --git a/meta/3rd/love2d/library/love/graphics.lua b/meta/3rd/love2d/library/love/graphics.lua
index b0c991c9..87ad4a8f 100644
--- a/meta/3rd/love2d/library/love/graphics.lua
+++ b/meta/3rd/love2d/library/love/graphics.lua
@@ -410,11 +410,11 @@ function love.graphics.getMeshCullMode() end
---love.graphics.getDimensions gets the dimensions of the window in units scaled by the screen's DPI scale factor, rather than pixels. Use getDimensions for calculations related to drawing to the screen and using the graphics coordinate system (calculating the center of the screen, for example), and getPixelDimensions only when dealing specifically with underlying pixels (pixel-related calculations in a pixel Shader, for example).
---
---
----[Open in Browser](https://love2d.org/wiki/love.graphics.getPixelDimenions)
+---[Open in Browser](https://love2d.org/wiki/love.graphics.getPixelDimensions)
---
---@return number pixelwidth # The width of the window in pixels.
---@return number pixelheight # The height of the window in pixels.
-function love.graphics.getPixelDimenions() end
+function love.graphics.getPixelDimensions() end
---
---Gets the height in pixels of the window.