Revision: 6740
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6740&view=rev
Author:   alexcb
Date:     2008-07-02 14:03:20 -0700 (Wed, 02 Jul 2008)

Log Message:
-----------
fixed stall icon overlapping bug from top-down camera

Modified Paths:
--------------
    code/stage/trunk/libstage/canvas.cc

Modified: code/stage/trunk/libstage/canvas.cc
===================================================================
--- code/stage/trunk/libstage/canvas.cc 2008-07-02 20:50:09 UTC (rev 6739)
+++ code/stage/trunk/libstage/canvas.cc 2008-07-02 21:03:20 UTC (rev 6740)
@@ -597,12 +597,14 @@
        
        
        if ( showStatus ) {
-
+               glPushMatrix();
                for( std::multimap< float, StgModel* >::reverse_iterator i = 
ordered.rbegin(); i != ordered.rend(); i++ ) {
+                       //ensure two icons can't be in the exact same plane
+                       if( camera.getPitch() == 0 )
+                               glTranslatef( 0, 0, 0.1 );
                        i->second->DrawStatusTree( this );
                }
-               
-               std::cout << std::endl;
+               glPopMatrix();
        }
        
   if( world->GetRayList() )


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to