Skip to content

Fix Screen Dimension Getters#41

Merged
amasiye merged 3 commits into
mainfrom
develop
Nov 2, 2025
Merged

Fix Screen Dimension Getters#41
amasiye merged 3 commits into
mainfrom
develop

Conversation

@amasiye

@amasiye amasiye commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

This pull request adds new utility functions to retrieve the actual and configured screen dimensions, improving flexibility in handling screen size values. The main changes are the introduction of functions to get both the runtime and configured screen width and height.

Screen dimension utilities:

  • Added get_screen_width() and get_screen_height() functions that return the actual screen width and height using Console::getSize(). These functions now also include @throws Exception in their docblocks. [1] [2]
  • Added get_configured_screen_width() and get_configured_screen_height() functions to retrieve the screen width and height from configuration, falling back to defaults if not set. [1] [2]

@amasiye amasiye merged commit 01dc500 into main Nov 2, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant