graphics: restore monitor settings when fullscreen is lost then restored (#664)

## Link to GitHub Issue or related Pull Request, if one exists
Fixes #663 

## Description of change
Apply monitor rotation and refresh rate again when fullscreen focus is
regained.

## Testing
Tested with sdvx7
This commit is contained in:
bicarus
2026-04-28 16:04:52 -07:00
committed by GitHub
parent 3876e38636
commit 82dda33800
3 changed files with 90 additions and 16 deletions
+3 -1
View File
@@ -117,4 +117,6 @@ void graphics_load_windowed_subscreen_parameters();
void graphics_window_check_bounds_before_creation(int &x, int &y, const int width, const int height);
void change_primary_monitor(const std::string &monitor_name);
void update_monitor_on_boot(std::optional<graphics_orientation> target_orientation, UINT target_refresh_rate);
void update_monitor_on_boot(std::optional<graphics_orientation> target_orientation, UINT target_refresh_rate);
void update_monitor_at_runtime();
void reset_monitor_on_exit();