BACKENDS: Prefer getBasePtr over direct Surface::pixels access.
This commit is contained in:
parent
103e926c07
commit
55afab4d68
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->pixels)
|
||||
memset(screen->pixels, col, screen->h * screen->pitch);
|
||||
if (screen && screen->getBasePtr(0, 0))
|
||||
memset(screen->getBasePtr(0, 0), col, screen->h * screen->pitch);
|
||||
unlockScreen();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue