Skip to content
Snippets Groups Projects
Commit b7712a76 authored by Jens Verwiebe's avatar Jens Verwiebe
Browse files

OSX/GHOST: fix T39153, pls check on win minimized window load

parent a349a3a9
No related branches found
No related tags found
No related merge requests found
...@@ -372,6 +372,9 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win) ...@@ -372,6 +372,9 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win)
if (win->eventstate == NULL) if (win->eventstate == NULL)
win->eventstate = MEM_callocN(sizeof(wmEvent), "window event state"); win->eventstate = MEM_callocN(sizeof(wmEvent), "window event state");
/* set the state */
GHOST_SetWindowState(ghostwin, (GHOST_TWindowState)win->windowstate);
/* store actual window size in blender window */ /* store actual window size in blender window */
bounds = GHOST_GetClientBounds(win->ghostwin); bounds = GHOST_GetClientBounds(win->ghostwin);
...@@ -379,9 +382,6 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win) ...@@ -379,9 +382,6 @@ static void wm_window_add_ghostwindow(const char *title, wmWindow *win)
win->sizey = GHOST_GetHeightRectangle(bounds); win->sizey = GHOST_GetHeightRectangle(bounds);
GHOST_DisposeRectangle(bounds); GHOST_DisposeRectangle(bounds);
/* set the state */
GHOST_SetWindowState(ghostwin, (GHOST_TWindowState)win->windowstate);
/* until screens get drawn, make it nice gray */ /* until screens get drawn, make it nice gray */
glClearColor(0.55, 0.55, 0.55, 0.0); glClearColor(0.55, 0.55, 0.55, 0.0);
/* Crash on OSS ATI: bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100 */ /* Crash on OSS ATI: bugs.launchpad.net/ubuntu/+source/mesa/+bug/656100 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment