mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
Fixing the update coordinates for videos with _bytesPerPixel > 1
svn-id: r35395
This commit is contained in:
parent
d4b6b9187d
commit
94c14c7c78
@ -1281,6 +1281,10 @@ CoktelVideo::State Vmd::processFrame(uint16 frame) {
|
||||
|
||||
int16 l = part.left, t = part.top, r = part.right, b = part.bottom;
|
||||
if (renderFrame(l, t, r, b)) {
|
||||
if (!_externalCodec) {
|
||||
l /= _bytesPerPixel;
|
||||
r /= _bytesPerPixel;
|
||||
}
|
||||
// Rendering succeeded, merging areas
|
||||
state.left = MIN(state.left, l);
|
||||
state.top = MIN(state.top, t);
|
||||
|
Loading…
Reference in New Issue
Block a user