BACKENDS: Take advantage of Surface::getPixels.
This commit is contained in:
parent
f386e15b6f
commit
767f0d8ca9
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ void BaseBackend::initBackend() {
|
|||
|
||||
void BaseBackend::fillScreen(uint32 col) {
|
||||
Graphics::Surface *screen = lockScreen();
|
||||
if (screen && screen->getBasePtr(0, 0))
|
||||
memset(screen->getBasePtr(0, 0), col, screen->h * screen->pitch);
|
||||
if (screen && screen->getPixels())
|
||||
memset(screen->getPixels(), col, screen->h * screen->pitch);
|
||||
unlockScreen();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue