mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 15:50:42 -07:00
graphics: rewrite auto-rotate and refresh rate options to be more reliable (#607)
## Description of change Rotate monitor & change the refresh rate **well before** the game is launched. This is much faster and more reliable compared to what we do now, which is trying to do monitor changes during CreateWindow hooks. For example, SDVX makes a bunch of OS / NVAPI calls to figure out monitor geometry while it's booting, and by the time CreateWindow is called, the game already made up its mind, which leads to weird graphical issues. This affects both windowed mode and full screen. In addition, add options for normal orientation (landscape) and upside down (landscape, flipped) options. This can be used if the monitor is normally rotated to portrait, but the game needs to be in landscape.
This commit is contained in:
@@ -15,6 +15,7 @@ enum graphics_orientation {
|
||||
ORIENTATION_CW = 0,
|
||||
ORIENTATION_CCW = 1,
|
||||
ORIENTATION_NORMAL = 2,
|
||||
ORIENTATION_FLIPPED = 3
|
||||
};
|
||||
|
||||
enum graphics_dx9on12_state {
|
||||
@@ -107,3 +108,5 @@ bool graphics_window_decoration_change_crashes_game();
|
||||
bool graphics_window_resize_breaks_game();
|
||||
bool graphics_window_move_and_resize_breaks_game();
|
||||
void graphics_load_windowed_subscreen_parameters();
|
||||
|
||||
void update_monitor_on_boot();
|
||||
Reference in New Issue
Block a user