MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / showWindow

Method showWindow

platform/sdl/knativescreenSDL.cpp:128–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void 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
162void KNativeScreenSDL::clear() {
163#ifdef BOXEDWINE_RECORDER

Callers

nothing calls this directly

Calls 9

SDL_HideWindowFunction · 0.85
SDL_ShowWindowFunction · 0.85
SDL_RaiseWindowFunction · 0.85
uiIsRunningFunction · 0.85
uiShutdownFunction · 0.85
klogFunction · 0.85
isMainthreadFunction · 0.50
isEmptyMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected