mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update with container examples
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user