From d4b6b9187db09acabb347f368fb8f26d648e32cc Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 16 Dec 2008 18:53:26 +0000 Subject: More video fixes for the magnifier/memory view svn-id: r35394 --- engines/gob/coktelvideo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3