mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
GROOVIE: Do not access Surface::bytesPerPixel anymore.
This commit is contained in:
parent
ca81ab1a4c
commit
89fe3ff141
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user