diff options
| author | Johannes Schickel | 2011-04-17 21:14:19 +0200 |
|---|---|---|
| committer | Johannes Schickel | 2011-04-17 21:14:19 +0200 |
| commit | 877004dbdd967d2f57d494b1aaa1cb55aae0fd52 (patch) | |
| tree | fe3630f18560b876300c42d50b2993b7b8da32da /backends/platform/android/gfx.cpp | |
| parent | 3fd919060ca6bbf896680f3548bfaac020900d42 (diff) | |
| download | scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.tar.gz scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.tar.bz2 scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.zip | |
BACKENDS: Adapt various backends code to set up Surface::format correctly.
Note that this change is not tested at all (not even compile wise!).
Diffstat (limited to 'backends/platform/android/gfx.cpp')
| -rw-r--r-- | backends/platform/android/gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 86232030ff..fae428d29f 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -628,13 +628,13 @@ void OSystem_Android::grabOverlay(OverlayColor *buf, int pitch) { GLTHREADCHECK; const Graphics::Surface *surface = _overlay_texture->surface_const(); - assert(surface->bytesPerPixel == sizeof(buf[0])); + assert(surface->format.bytesPerPixel == sizeof(buf[0])); const byte *src = (const byte *)surface->pixels; uint h = surface->h; do { - memcpy(buf, src, surface->w * surface->bytesPerPixel); + memcpy(buf, src, surface->w * surface->format.bytesPerPixel); src += surface->pitch; // This 'pitch' is pixels not bytes buf += pitch; |
