void DreamsEngine::render() { // Lock Rendering SDL_SemWait( gpRenderLock ); if(mChangeMode) { applyScreenMode(); } SDL_Surface *blitSfc = gVideoDriver.getBlitSurface(); BEL_ST_UpdateHostDisplay(blitSfc); // Unlock SDL_SemPost( gpRenderLock ); }
void DreamsEngine::render() { BE_ST_EGASetPelPanning(panx & 6); if(mpScene) { mpScene->render(); } if(mChangeMode) { applyScreenMode(); } SDL_Surface *blitSfc = gVideoDriver.getBlitSurface(); BEL_ST_UpdateHostDisplay(blitSfc); }