From d509941eca5b7e49af654d2e95e1b10d3253c177 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 18 Jan 2011 05:09:43 +0000 Subject: VIDEO: Clip render rect to the surface's dimension ...And not to the video's. Oops :P svn-id: r55285 --- graphics/video/coktel_decoder.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'graphics') diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index c1cb5e17a2..97dfebb0a7 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -2193,9 +2193,8 @@ bool VMDDecoder::renderFrame(Common::Rect &rect) { fakeRect.right - _x * _bytesPerPixel, fakeRect.bottom - _y); } - - realRect.clip(Common::Rect(_width, _height)); - fakeRect.clip(Common::Rect(_width * _bytesPerPixel, _height)); + realRect.clip(Common::Rect(_surface.w, _surface.h)); + fakeRect.clip(Common::Rect(_surface.w * _bytesPerPixel, _surface.h)); if (!realRect.isValidRect() || realRect.isEmpty()) return false; -- cgit v1.2.3