Update with container examples

This commit is contained in:
Insality
2025-04-25 01:13:04 +03:00
parent 8155d649ab
commit 749666a4a5
12 changed files with 1111 additions and 56 deletions

View File

@@ -154,9 +154,8 @@ function M.get_screen_aspect_koef()
end
---Get current GUI scale for each side
---@return number scale_x
---@return number scale_y
---Get current GUI scale
---@return number scale
function M.get_gui_scale()
local window_x, window_y = window.get_size()
return math.min(window_x / gui.get_width(), window_y / gui.get_height())