summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-28 22:56:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-28 22:56:35 +0800
commit7eaec047d708e84a7c29dd9d70e306d90fac412d (patch)
treea79282766b8a472494d5ba1f2c65e025b39a66fb /meta/3rd/love2d
parent9060bc4b2c3f40145b91fc0423de31b07161b5f5 (diff)
downloadlua-language-server-7eaec047d708e84a7c29dd9d70e306d90fac412d.zip
update meta files for `love2d` and `lovr`
Diffstat (limited to 'meta/3rd/love2d')
-rw-r--r--meta/3rd/love2d/library/love.graphics.lua2
-rw-r--r--meta/3rd/love2d/library/love.window.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua
index 056cfef1..1528a181 100644
--- a/meta/3rd/love2d/library/love.graphics.lua
+++ b/meta/3rd/love2d/library/love.graphics.lua
@@ -569,7 +569,7 @@ function love.graphics.newFont(filename) end
---@overload fun(imageData: love.ImageData, flags: table):love.Image
---@overload fun(compressedImageData: love.CompressedImageData, flags: table):love.Image
---@param filename string # The filepath to the image file.
----@param flags {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields:
+---@param flags? {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields:
---@return love.Image image # A new Image object which can be drawn on screen.
function love.graphics.newImage(filename, flags) end
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua
index 0fd99213..0e9004d4 100644
--- a/meta/3rd/love2d/library/love.window.lua
+++ b/meta/3rd/love2d/library/love.window.lua
@@ -229,7 +229,7 @@ function love.window.setIcon(imagedata) end
---
---@param width number # Display width.
---@param height number # Display height.
----@param flags {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, stencil: boolean, depth: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number, usedpiscale: boolean, srgb: boolean} # The flags table with the options:
+---@param flags? {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, stencil: boolean, depth: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number, usedpiscale: boolean, srgb: boolean} # The flags table with the options:
---@return boolean success # True if successful, false otherwise.
function love.window.setMode(width, height, flags) end