Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 442 Lines • ▼ Show 20 Lines | if (G.debug & G_DEBUG_GPU) { | ||||
| glSettings.flags |= GHOST_glDebugContext; | glSettings.flags |= GHOST_glDebugContext; | ||||
| } | } | ||||
| wm_get_screensize(&scr_w, &scr_h); | wm_get_screensize(&scr_w, &scr_h); | ||||
| posy = (scr_h - win->posy - win->sizey); | posy = (scr_h - win->posy - win->sizey); | ||||
| ghostwin = GHOST_CreateWindow(g_system, title, | ghostwin = GHOST_CreateWindow(g_system, title, | ||||
| win->posx, posy, win->sizex, win->sizey, | win->posx, posy, win->sizex, win->sizey, | ||||
| #ifdef __APPLE__ | |||||
| /* we agreed to not set any fullscreen or iconized state on startup */ | |||||
| GHOST_kWindowStateNormal, | |||||
| #else | |||||
| (GHOST_TWindowState)win->windowstate, | (GHOST_TWindowState)win->windowstate, | ||||
| #endif | |||||
| GHOST_kDrawingContextTypeOpenGL, | GHOST_kDrawingContextTypeOpenGL, | ||||
| glSettings); | glSettings); | ||||
| if (ghostwin) { | if (ghostwin) { | ||||
| GHOST_RectangleHandle bounds; | GHOST_RectangleHandle bounds; | ||||
| /* the new window has already been made drawable upon creation */ | /* the new window has already been made drawable upon creation */ | ||||
| wm->windrawable = win; | wm->windrawable = win; | ||||
| ▲ Show 20 Lines • Show All 1,326 Lines • Show Last 20 Lines | |||||