mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GRAPHICS: Prefer getBasePtr over direct Surface::pixels access.
This commit is contained in:
@@ -278,7 +278,7 @@ public:
|
||||
* Clears the active surface.
|
||||
*/
|
||||
virtual void clearSurface() {
|
||||
byte *src = (byte *)_activeSurface->pixels;
|
||||
byte *src = (byte *)_activeSurface->getBasePtr(0, 0);
|
||||
memset(src, 0, _activeSurface->pitch * _activeSurface->h);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user