Update of /cvsroot/playerstage/code/stage/libstage
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10131

Modified Files:
        canvas.cc 
Log Message:
minor bugfix

Index: canvas.cc
===================================================================
RCS file: /cvsroot/playerstage/code/stage/libstage/canvas.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** canvas.cc   1 Feb 2008 03:11:01 -0000       1.4
--- canvas.cc   1 Feb 2008 03:16:43 -0000       1.5
***************
*** 408,413 ****
        // and put it in the center of the window
        //glRotatef( -rtod(gpose.a), 0,0,1 );
!       glTranslatef(  -gpose.x, -gpose.y, 0 );
!       
       }
     
--- 408,412 ----
        // and put it in the center of the window
        //glRotatef( -rtod(gpose.a), 0,0,1 );
!       glTranslatef(  -gpose.x, -gpose.y, 0 );      
       }
     
***************
*** 420,429 ****
  
     glPushMatrix();
     glScalef( 1.0/world->Resolution(), 1.0/world->Resolution(), 0 );
-    //g_hash_table_foreach( world->superregions, StgWorld::Floor_cb, NULL );
     ((StgWorldGui*)world)->DrawFloor();
- 
-    //   glRectf( -world->Width()/2.0, -world->Height()/2.0,
-    //     world->Width()/2.0, world->Height()/2.0 ); 
     glDisable(GL_POLYGON_OFFSET_FILL);
  
--- 419,425 ----
  
     glPushMatrix();
+ 
     glScalef( 1.0/world->Resolution(), 1.0/world->Resolution(), 0 );
     ((StgWorldGui*)world)->DrawFloor();
     glDisable(GL_POLYGON_OFFSET_FILL);
  
***************
*** 432,439 ****
         glDisable( GL_LINE_SMOOTH );
         glLineWidth( 1 );
-        
-        glPushMatrix();
-        //glTranslatef( -world->Width()/2.0, -world->Height()/2.0, 1 );
-        //glScalef( 1.0/world->Resolution(), 1.0/world->Resolution(), 0 );
         glPolygonMode( GL_FRONT, GL_LINE );
         colorstack.Push(1,0,0);
--- 428,431 ----


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to