mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 20:15:42 +00:00
ZVISION: Don't cast away const qualifier
This commit is contained in:
parent
4d5914ac21
commit
2fcba2743c
@ -148,10 +148,10 @@ void ZVision::playVideo(Video::VideoDecoder &videoDecoder, const Common::Rect &d
|
||||
|
||||
if (frame) {
|
||||
if (scale != 1) {
|
||||
scaleBuffer((byte *)frame->getBasePtr(0, 0), scaledVideoFrameBuffer, origWidth, origHeight, bytesPerPixel, scale);
|
||||
scaleBuffer((const byte *)frame->getBasePtr(0, 0), scaledVideoFrameBuffer, origWidth, origHeight, bytesPerPixel, scale);
|
||||
_system->copyRectToScreen(scaledVideoFrameBuffer, pitch * 2, x, y, finalWidth, finalHeight);
|
||||
} else {
|
||||
_system->copyRectToScreen((byte *)frame->getBasePtr(0, 0), pitch, x, y, finalWidth, finalHeight);
|
||||
_system->copyRectToScreen((const byte *)frame->getBasePtr(0, 0), pitch, x, y, finalWidth, finalHeight);
|
||||
}
|
||||
|
||||
_system->updateScreen();
|
||||
|
Loading…
x
Reference in New Issue
Block a user