Skip to content

Window behavior review #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 5, 2025
Merged

Window behavior review #79

merged 6 commits into from
Feb 5, 2025

Conversation

ColleagueRiley
Copy link
Owner

reviews windowing behavior

  • separate maximize and fullscreen functions
  • maximize -> use the API to make the window maximized ("windowed" window at its max size)
  • fullscreen -> use API to make the window fullscreen ("unwindowed" top window that covers the full screen)
  • add RGFW_window_setAspectRatio -> uses API calls to force an aspect ratio when the window is resized
  • add RGFW_window_scaleToMonitor AND RGFW_monitor_scale (scale THE MONITOR to a certain size) (i.e. forcing a 720p resolution)
  • add monitor/monitor example to show forced scaling.

@ColleagueRiley ColleagueRiley marked this pull request as draft February 3, 2025 15:39
@ColleagueRiley
Copy link
Owner Author

Currently, this has only been implemented for X11 (tested with Arch Linux Xfce)

This will be pulled as soon as MacOS and Windows support gets implemented.

@ColleagueRiley ColleagueRiley linked an issue Feb 3, 2025 that may be closed by this pull request
@ColleagueRiley ColleagueRiley marked this pull request as ready for review February 5, 2025 16:08
@ColleagueRiley ColleagueRiley changed the title Window behavior review (WIP) Window behavior review Feb 5, 2025
@ColleagueRiley ColleagueRiley merged commit 27e293c into main Feb 5, 2025
9 checks passed
@ColleagueRiley ColleagueRiley deleted the window-behavior-review branch February 5, 2025 19:09
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.

Aspect ratio locked window resizing
1 participant