| 126 | } |
| 127 | |
| 128 | void KNativeScreenSDL::showWindow(bool show) { |
| 129 | if (show == visible) { |
| 130 | return; |
| 131 | } |
| 132 | if (!isMainthread()) { |
| 133 | DISPATCH_MAIN_THREAD_BLOCK_THIS_BEGIN |
| 134 | showWindow(show); |
| 135 | DISPATCH_MAIN_THREAD_BLOCK_END |
| 136 | } else { |
| 137 | showOnDraw = false; |
| 138 | if (!show) { |
| 139 | SDL_HideWindow(window); |
| 140 | visible = false; |
| 141 | } else { |
| 142 | if (KSystem::videoOption == VIDEO_NORMAL) { |
| 143 | SDL_ShowWindow(window); |
| 144 | SDL_RaiseWindow(window); |
| 145 | } |
| 146 | visible = true; |
| 147 | #if !defined(BOXEDWINE_DISABLE_UI) && !defined(__TEST) && defined(BOXEDWINE_UI_LAUNCH_IN_PROCESS) |
| 148 | if (uiIsRunning()) { |
| 149 | uiShutdown(); |
| 150 | } |
| 151 | #else |
| 152 | if (!KSystem::showWindowTimestamp.isEmpty()) { |
| 153 | BWriteFile file(KSystem::showWindowTimestamp); |
| 154 | file.write("Showing Window"); |
| 155 | } |
| 156 | klog("Showing Window"); |
| 157 | #endif |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | void KNativeScreenSDL::clear() { |
| 163 | #ifdef BOXEDWINE_RECORDER |
nothing calls this directly
no test coverage detected