[Scummvm-cvs-logs] SF.net SVN: scummvm:[55285] scummvm/trunk/graphics/video/coktel_decoder.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Tue Jan 18 06:09:44 CET 2011
Revision: 55285
http://scummvm.svn.sourceforge.net/scummvm/?rev=55285&view=rev
Author: drmccoy
Date: 2011-01-18 05:09:43 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
VIDEO: Clip render rect to the surface's dimension
...And not to the video's. Oops :P
Modified Paths:
--------------
scummvm/trunk/graphics/video/coktel_decoder.cpp
Modified: scummvm/trunk/graphics/video/coktel_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.cpp 2011-01-18 04:19:33 UTC (rev 55284)
+++ scummvm/trunk/graphics/video/coktel_decoder.cpp 2011-01-18 05:09:43 UTC (rev 55285)
@@ -2193,10 +2193,9 @@
fakeRect.right - _x * _bytesPerPixel, fakeRect.bottom - _y);
}
+ realRect.clip(Common::Rect(_surface.w, _surface.h));
+ fakeRect.clip(Common::Rect(_surface.w * _bytesPerPixel, _surface.h));
- realRect.clip(Common::Rect(_width, _height));
- fakeRect.clip(Common::Rect(_width * _bytesPerPixel, _height));
-
if (!realRect.isValidRect() || realRect.isEmpty())
return false;
if (!fakeRect.isValidRect() || realRect.isEmpty())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list