Пример #1
0
void DreamsEngine::render()
{
    // Lock Rendering
    SDL_SemWait( gpRenderLock );

    if(mChangeMode)
    {
        applyScreenMode();
    }

    SDL_Surface *blitSfc = gVideoDriver.getBlitSurface();
    BEL_ST_UpdateHostDisplay(blitSfc);

    // Unlock
    SDL_SemPost( gpRenderLock );
}
Пример #2
0
void DreamsEngine::render()
{
    BE_ST_EGASetPelPanning(panx & 6);

    if(mpScene)
    {
        mpScene->render();
    }

    if(mChangeMode)
    {
        applyScreenMode();
    }

    SDL_Surface *blitSfc = gVideoDriver.getBlitSurface();
    BEL_ST_UpdateHostDisplay(blitSfc);
}