summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-16 17:43:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-16 17:43:48 +0800
commit78082d92799a416bb01ef4f5fcc3a828ad7fe244 (patch)
tree91114f155fc90f6792f25a816aa3d84b6ba219a6 /meta/3rd/love2d
parent861327485e9c9795cd00635feb41a74d396448db (diff)
downloadlua-language-server-78082d92799a416bb01ef4f5fcc3a828ad7fe244.zip
build 3rd metas
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.