Logo Search packages:      
Sourcecode: scummvm version File versions

void BaseBackend::fillScreen ( uint32  col ) [virtual, inherited]

Fills the screen with a given color value.

Note:
We are using uint32 here even though currently we only support 8bpp indexed mode. Thus the value should be always inside [0, 255] for now.

Implements OSystem.

Definition at line 49 of file base-backend.cpp.

References Graphics::Surface::h, OSystem::lockScreen(), Graphics::Surface::pitch, Graphics::Surface::pixels, and OSystem::unlockScreen().

                                       {
      Graphics::Surface *screen = lockScreen();
      if (screen && screen->pixels)
            memset(screen->pixels, col, screen->h * screen->pitch);
      unlockScreen();
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index