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

Function flipFB

source/kernel/devs/devfb.cpp:503–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503bool flipFB() {
504 if (!bOpenGL && screenPixels && sdlTexture) {
505 SDL_UpdateTexture(sdlTexture, nullptr, screenPixels, fb_fix_screeninfo.line_length);
506 SDL_RenderClear(sdlRenderer);
507 SDL_RenderCopy(sdlRenderer, sdlTexture, nullptr, nullptr);
508 SDL_RenderPresent(sdlRenderer);
509 return true;
510 }
511 return false;
512}
513
514void flipFBNoCheck() {
515#ifdef BOXEDWINE_64BIT_MMU

Callers 1

doMainLoopFunction · 0.85

Calls 4

SDL_UpdateTextureFunction · 0.85
SDL_RenderClearFunction · 0.85
SDL_RenderCopyFunction · 0.85
SDL_RenderPresentFunction · 0.85

Tested by

no test coverage detected