aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2008-12-16 18:53:26 +0000
committerSven Hesse2008-12-16 18:53:26 +0000
commitd4b6b9187db09acabb347f368fb8f26d648e32cc (patch)
tree18f3215920874275fbc22e71884f9bcf42650e53
parent696ed52959e7853ff2039fb0ce1063cebb9a1cd2 (diff)
downloadscummvm-rg350-d4b6b9187db09acabb347f368fb8f26d648e32cc.tar.gz
scummvm-rg350-d4b6b9187db09acabb347f368fb8f26d648e32cc.tar.bz2
scummvm-rg350-d4b6b9187db09acabb347f368fb8f26d648e32cc.zip
More video fixes for the magnifier/memory view
svn-id: r35394
-rw-r--r--engines/gob/coktelvideo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp
index 7b5ef8a5c5..50425d7679 100644
--- a/engines/gob/coktelvideo.cpp
+++ b/engines/gob/coktelvideo.cpp
@@ -1388,7 +1388,8 @@ uint32 Vmd::renderFrame(int16 &left, int16 &top, int16 &right, int16 &bottom) {
srcPtr = dataPtr;
if (_bytesPerPixel > 1) {
- dest = _vidMemBuffer;
+ dest = _vidMemBuffer + _width * (top - _y) + (left - _x);
+ imdVidMem = _vidMem + _vidMemWidth * top + (left / _bytesPerPixel);
sW = _width;
}
@@ -1505,6 +1506,7 @@ uint32 Vmd::renderFrame(int16 &left, int16 &top, int16 &right, int16 &bottom) {
}
}
+ dest = _vidMemBuffer + _width * (top - _y) + (left - _x);
blit(imdVidMem, dest, width, height);
return 1;