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

Method present

platform/sdl/knativescreenSDL.cpp:310–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void KNativeScreenSDL::present() {
311 if (KSystem::videoOption != VIDEO_NO_WINDOW) {
312 if (showOnDraw) {
313 showWindow(true);
314 }
315 SDL_RenderPresent(renderer);
316 }
317 presented = true;
318#ifdef BOXEDWINE_RECORDER
319 if (Recorder::instance) {
320 BOXEDWINE_MUTEX_UNLOCK(drawingMutex);
321 }
322#endif
323}
324
325bool KNativeScreenSDL::presentedSinceLastCheck() {
326 bool result = presented;

Callers 1

drawMethod · 0.80

Calls 2

showWindowFunction · 0.85
SDL_RenderPresentFunction · 0.85

Tested by

no test coverage detected