Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_System.cpp
| Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window **window, | ||||
| const GHOST_DisplaySetting &settings, | const GHOST_DisplaySetting &settings, | ||||
| const bool stereoVisual) | const bool stereoVisual) | ||||
| { | { | ||||
| GHOST_GLSettings glSettings = {0}; | GHOST_GLSettings glSettings = {0}; | ||||
| if (stereoVisual) { | if (stereoVisual) { | ||||
| glSettings.flags |= GHOST_glStereoVisual; | glSettings.flags |= GHOST_glStereoVisual; | ||||
| } | } | ||||
| glSettings.context_type = GHOST_kDrawingContextTypeOpenGL; | |||||
| /* NOTE: don't use #getCurrentDisplaySetting() because on X11 we may | /* NOTE: don't use #getCurrentDisplaySetting() because on X11 we may | ||||
| * be zoomed in and the desktop may be bigger than the viewport. */ | * be zoomed in and the desktop may be bigger than the viewport. */ | ||||
| GHOST_ASSERT(m_displayManager, | GHOST_ASSERT(m_displayManager, | ||||
| "GHOST_System::createFullScreenWindow(): invalid display manager"); | "GHOST_System::createFullScreenWindow(): invalid display manager"); | ||||
| // GHOST_PRINT("GHOST_System::createFullScreenWindow(): creating full-screen window\n"); | // GHOST_PRINT("GHOST_System::createFullScreenWindow(): creating full-screen window\n"); | ||||
| *window = (GHOST_Window *)createWindow("", | *window = (GHOST_Window *)createWindow("", | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| settings.xPixels, | settings.xPixels, | ||||
| settings.yPixels, | settings.yPixels, | ||||
| GHOST_kWindowStateNormal, | GHOST_kWindowStateNormal, | ||||
| GHOST_kDrawingContextTypeOpenGL, | |||||
| glSettings, | glSettings, | ||||
| true /* exclusive */); | true /* exclusive */); | ||||
| return (*window == nullptr) ? GHOST_kFailure : GHOST_kSuccess; | return (*window == nullptr) ? GHOST_kFailure : GHOST_kSuccess; | ||||
| } | } | ||||
| bool GHOST_System::useNativePixel() | bool GHOST_System::useNativePixel() | ||||
| { | { | ||||
| m_nativePixel = true; | m_nativePixel = true; | ||||
| Show All 27 Lines | |||||