mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-07 00:25:54 +01:00
parent
d6e3a9e014
commit
d5189525b2
@ -1504,6 +1504,8 @@ void OS_X11::set_window_size(const Size2 p_size) {
|
||||
int old_h = xwa.height;
|
||||
|
||||
Size2 size = p_size;
|
||||
|
||||
ERR_FAIL_COND(Math::is_nan(size.x) || Math::is_nan(size.y));
|
||||
size.x = MAX(1, size.x);
|
||||
size.y = MAX(1, size.y);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user