Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

virtual Graphics::Surface* OSystem::lockScreen (  ) [pure virtual, inherited]

Lock the active screen framebuffer and return a Graphics::Surface representing it. The caller can then perform arbitrary graphics transformations on the framebuffer (blitting, scrolling, etc.). Must be followed by matching call to unlockScreen(). Calling code should make sure to only lock the framebuffer for the briefest periods of time possible, as the whole system is potentially stalled while the lock is active. Returns 0 if an error occurred. Otherwise an 8bit surface is returned.

The returned surface must *not* be deleted by the client code.

Implemented in OSystem_Dreamcast, OSystem_DS, OSystem_GP2X, OSystem_IPHONE, OSystem_PalmOS5, OSystem_PS2, OSystem_PSP, OSystem_SDL, OSystem_Wii, and OSystem_WINCE3.

Referenced by BaseBackend::fillScreen(), Scumm::ScummEngine::moveScreen(), and Graphics::VideoPlayer::playVideo().

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index