Skip to content

Commit 7be7cde

Browse files
committed
Update documentation
1 parent ebefcde commit 7be7cde

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ScreenManager.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ end
200200

201201
---
202202
-- Reroute the mousefocus callback to the currently active screen.
203-
-- @param button
203+
-- @param focus - Wether the window has mouse focus or not.
204204
--
205205
function ScreenManager.mousefocus( focus )
206206
ScreenManager.peek():mousefocus( focus );
@@ -241,16 +241,17 @@ end
241241

242242
---
243243
-- Reroute the quit callback to the currently active screen.
244-
-- @param dquit
244+
-- @param dquit - Abort quitting. If true, do not close the game.
245245
--
246246
function ScreenManager.quit( dquit )
247247
ScreenManager.peek():quit( dquit );
248248
end
249249

250250
---
251-
-- Resize all screens on the stack.
252-
-- @param w
253-
-- @param h
251+
-- Called when the window is resized, for example if the user resizes the window, or if love.window.setMode is called with an unsupported width or height in fullscreen and the window chooses the closest appropriate size.
252+
--
253+
-- @param w - The new width, in pixels.
254+
-- @param h - The new height, in pixels.
254255
--
255256
function ScreenManager.resize( w, h )
256257
for i = 1, #stack do

0 commit comments

Comments
 (0)