diff options
author | Johannes Schickel | 2011-04-17 17:26:45 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 20:56:16 +0200 |
commit | 89fe3ff141f871339c1633e2f322ae28360d4c80 (patch) | |
tree | ce9396645a2aa99a4c3c0a9da2b8ce439d1caf6a /engines/groovie | |
parent | ca81ab1a4c469c2faa3f739f6202ea79ca5bc50e (diff) | |
download | scummvm-rg350-89fe3ff141f871339c1633e2f322ae28360d4c80.tar.gz scummvm-rg350-89fe3ff141f871339c1633e2f322ae28360d4c80.tar.bz2 scummvm-rg350-89fe3ff141f871339c1633e2f322ae28360d4c80.zip |
GROOVIE: Do not access Surface::bytesPerPixel anymore.
Diffstat (limited to 'engines/groovie')
-rw-r--r-- | engines/groovie/roq.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp index a929c8ba0b..fe5d05f65d 100644 --- a/engines/groovie/roq.cpp +++ b/engines/groovie/roq.cpp @@ -175,7 +175,7 @@ void ROQPlayer::buildShowBuf() { // Skip to the next pixel out += _vm->_pixelFormat.bytesPerPixel; if (!(x % _scaleX)) - in += _currBuf->bytesPerPixel; + in += _currBuf->format.bytesPerPixel; } #ifdef DITHER _dither->nextLine(); @@ -700,7 +700,7 @@ void ROQPlayer::copy(byte size, int destx, int desty, int offx, int offy) { for (int i = 0; i < size; i++) { // Copy the current line - memcpy(dst, src, size * _currBuf->bytesPerPixel); + memcpy(dst, src, size * _currBuf->format.bytesPerPixel); // Move to the beginning of the next line dst += _currBuf->pitch; |