mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 14:54:20 +08:00
Fix resize flag
This commit is contained in:
parent
88f9d40aab
commit
e40f14f106
@ -540,11 +540,11 @@ diff -rupNw source-original/src/video/orbital/SDL_orbitalvideo.c source/src/vide
|
||||
+ if (this->hidden->window) {
|
||||
+ orb_window_set_size(this->hidden->window, width, height);
|
||||
+ } else {
|
||||
+ uint32_t flags = ORB_WINDOW_ASYNC;
|
||||
+ uint32_t orb_flags = ORB_WINDOW_ASYNC;
|
||||
+ if (flags & SDL_RESIZABLE)
|
||||
+ flags |= ORB_WINDOW_RESIZABLE;
|
||||
+ orb_flags |= ORB_WINDOW_RESIZABLE;
|
||||
+
|
||||
+ this->hidden->window = orb_window_new_flags(-1, -1, width, height, "SDL", flags);
|
||||
+ this->hidden->window = orb_window_new_flags(-1, -1, width, height, "SDL", orb_flags);
|
||||
+ if (!this->hidden->window) {
|
||||
+ SDL_SetError("Couldn't create window for requested mode");
|
||||
+ return(NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user