[Scummvm-cvs-logs] CVS: scummvm/scumm wiz_he.cpp,2.50,2.51
kirben
kirben at users.sourceforge.net
Mon Apr 11 23:07:30 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16231/scumm
Modified Files:
wiz_he.cpp
Log Message:
Add angle change.
Index: wiz_he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/wiz_he.cpp,v
retrieving revision 2.50
retrieving revision 2.51
diff -u -d -r2.50 -r2.51
--- wiz_he.cpp 12 Apr 2005 05:26:48 -0000 2.50
+++ wiz_he.cpp 12 Apr 2005 06:06:56 -0000 2.51
@@ -1101,11 +1101,17 @@
} else {
warning("drawWizComplexPolygon() angle partially implemented");
+ if (angle < 0) {
+ angle = 360 - (angle / 360);
+ } else {
+ angle /= 360;
+ }
+
Common::Rect bounds;
_wiz.polygonCalcBoundBox(pts, 4, bounds);
int x1 = bounds.left;
int y1 = bounds.top;
- // XXX angle changed
+
switch(angle) {
case 270:
flags |= kWIFFlipX | kWIFFlipY;
More information about the Scummvm-git-logs
mailing list