GRAPHICS: Prefer getBasePtr over direct Surface::pixels access.

This commit is contained in:
Johannes Schickel
2013-08-03 02:52:34 +02:00
parent 5afa6f97f4
commit affb7c3cb3
+1 -1
View File
@@ -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);
}