diff options
author | Johannes Schickel | 2013-08-03 00:55:08 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:34 +0200 |
commit | affb7c3cb3d7a898419fc7ea081824382b2d2d8c (patch) | |
tree | ee9239da6b160894cf8e2231723ad45119fe1db9 /graphics | |
parent | 5afa6f97f46f2ce22b3c0ae6bca6338acd74bd14 (diff) | |
download | scummvm-rg350-affb7c3cb3d7a898419fc7ea081824382b2d2d8c.tar.gz scummvm-rg350-affb7c3cb3d7a898419fc7ea081824382b2d2d8c.tar.bz2 scummvm-rg350-affb7c3cb3d7a898419fc7ea081824382b2d2d8c.zip |
GRAPHICS: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRenderer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index 0467cac946..3e4b6f4653 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -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); } |