diff options
author | Sven Hesse | 2011-01-18 05:09:43 +0000 |
---|---|---|
committer | Sven Hesse | 2011-01-18 05:09:43 +0000 |
commit | d509941eca5b7e49af654d2e95e1b10d3253c177 (patch) | |
tree | c0b53a20fd8929fc72adcde14f97619959b1d661 /graphics/video/coktel_decoder.cpp | |
parent | 283bec822d4c0a8e812e46aa824b8ea0b4d7227b (diff) | |
download | scummvm-rg350-d509941eca5b7e49af654d2e95e1b10d3253c177.tar.gz scummvm-rg350-d509941eca5b7e49af654d2e95e1b10d3253c177.tar.bz2 scummvm-rg350-d509941eca5b7e49af654d2e95e1b10d3253c177.zip |
VIDEO: Clip render rect to the surface's dimension
...And not to the video's. Oops :P
svn-id: r55285
Diffstat (limited to 'graphics/video/coktel_decoder.cpp')
-rw-r--r-- | graphics/video/coktel_decoder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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; |