MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Video_SurfaceRender

Method Video_SurfaceRender

Source/Fodder.cpp:16886–16906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16884}
16885
16886void cFodder::Video_SurfaceRender(const bool pRestoreSurface, const bool pShrink, cSurface* pSurface, const bool pSkip) {
16887
16888 if (mStartParams->mDisableVideo)
16889 return;
16890
16891 if (!pSurface) {
16892 pSurface = mSurface;
16893 }
16894
16895 pSurface->draw(pSkip == true ? 16 : 0, pSkip == true ? 16 : 0);
16896 if (pShrink) {
16897 mWindow->RenderShrunk(pSurface);
16898 }
16899 else {
16900 mWindow->RenderAt(pSurface);
16901 }
16902 mWindow->FrameEnd();
16903
16904 //if(pRestoreSurface)
16905 // mSurfaceFinal->Restore();
16906}
16907
16908void cFodder::sleepLoop(int64 pMilliseconds) {
16909#ifdef EMSCRIPTEN

Callers

nothing calls this directly

Calls 4

drawMethod · 0.80
RenderShrunkMethod · 0.80
RenderAtMethod · 0.80
FrameEndMethod · 0.80

Tested by

no test coverage detected