mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 23:00:42 -07:00
graphics: fix window position if out of bounds (#630)
## Link to GitHub Issue or related Pull Request, if one exists #618 ## Description of change Before calling `CreateWindowEx[A/W]`, check dimensions of the window about to be created, and check if it will be out of bounds (completely or partially). If it's completely out of bounds, move it to `(0, 0)` to prevent crashes or rendering issues. ## Testing Tested popn and sdvx.
This commit is contained in:
@@ -108,6 +108,7 @@ 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 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);
|
||||
Reference in New Issue
Block a user