| 16884 | } |
| 16885 | |
| 16886 | void 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 | |
| 16908 | void cFodder::sleepLoop(int64 pMilliseconds) { |
| 16909 | #ifdef EMSCRIPTEN |
nothing calls this directly
no test coverage detected