Skip to content

Commit

Permalink
fix: re-enable drawing text on linux (#94)
Browse files Browse the repository at this point in the history
* working: move to queue model for screen events
* fix: enlarge queue for screen events
  • Loading branch information
robbielyman authored Nov 17, 2023
1 parent fb6d5b0 commit 357ff4e
Show file tree
Hide file tree
Showing 4 changed files with 1,316 additions and 1,071 deletions.
4 changes: 2 additions & 2 deletions lua/core/screen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ function screen.get_text_size(text)
return _seamstress.screen_get_text_size(text)
end

--- returns the size of the current window.
--- returns the size of the main window.
-- @treturn integer w width in pixels
-- @treturn integer h height in pixels
-- @function screen.get_size
function screen.get_size()
return _seamstress.screen_get_size()
return screen.width, screen.height
end

--- sets the size of the current window
Expand Down
Loading

0 comments on commit 357ff4e

Please sign in to comment.