aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/gfx.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-06 03:43:08 +0200
committerJohannes Schickel2013-08-06 03:51:12 +0200
commitd9b90d67d3145147f90ed0dd9b53e7c3928f78ba (patch)
tree0555d95d9487d60ec137a609771a3e7ab6f1b0a7 /backends/platform/android/gfx.cpp
parent9179f0b78fc3548b2fdddb97cc6108d0a49e593c (diff)
downloadscummvm-rg350-d9b90d67d3145147f90ed0dd9b53e7c3928f78ba.tar.gz
scummvm-rg350-d9b90d67d3145147f90ed0dd9b53e7c3928f78ba.tar.bz2
scummvm-rg350-d9b90d67d3145147f90ed0dd9b53e7c3928f78ba.zip
ANDROID: Do not access Surface::pixels directly.
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r--backends/platform/android/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index cd0fd88484..882dcff9a4 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -552,7 +552,7 @@ Graphics::Surface *OSystem_Android::lockScreen() {
GLTHREADCHECK;
Graphics::Surface *surface = _game_texture->surface();
- assert(surface->pixels);
+ assert(surface->getPixels());
return surface;
}
@@ -645,7 +645,7 @@ void OSystem_Android::grabOverlay(void *buf, int pitch) {
assert(surface->format.bytesPerPixel == sizeof(uint16));
byte *dst = (byte *)buf;
- const byte *src = (const byte *)surface->pixels;
+ const byte *src = (const byte *)surface->getPixels();
uint h = surface->h;
do {