[Scummvm-cvs-logs] SF.net SVN: scummvm: [30392] residual/trunk/driver_tinygl.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Fri Jan 11 00:03:49 CET 2008
Revision: 30392
http://scummvm.svn.sourceforge.net/scummvm/?rev=30392&view=rev
Author: eriktorbjorn
Date: 2008-01-10 15:03:49 -0800 (Thu, 10 Jan 2008)
Log Message:
-----------
Fixed off-by-one errors. The 640 and 480 refer to width and height, not
coordinates.
Modified Paths:
--------------
residual/trunk/driver_tinygl.cpp
Modified: residual/trunk/driver_tinygl.cpp
===================================================================
--- residual/trunk/driver_tinygl.cpp 2008-01-10 22:14:17 UTC (rev 30391)
+++ residual/trunk/driver_tinygl.cpp 2008-01-10 23:03:49 UTC (rev 30392)
@@ -381,11 +381,11 @@
srcY = 0;
}
- if (x + width > 639)
- width -= (x + width) - 639;
+ if (x + width > 640)
+ width -= (x + width) - 640;
- if (y + height > 479)
- height -= (y + height) - 479;
+ if (y + height > 480)
+ height -= (y + height) - 480;
dst += (x + (y * 640)) * 2;
src += (srcX + (srcY * width)) * 2;
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