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

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

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.

Referenced by clearScreen().


Generated by  Doxygen 1.6.0   Back to index