From 89fe3ff141f871339c1633e2f322ae28360d4c80 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 17 Apr 2011 17:26:45 +0200 Subject: GROOVIE: Do not access Surface::bytesPerPixel anymore. --- engines/groovie/roq.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3