OSDN Git Service

線の太さを調整。
authorMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Sat, 8 Mar 2014 13:48:07 +0000 (22:48 +0900)
committerMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Sat, 8 Mar 2014 13:48:07 +0000 (22:48 +0900)
GVONavish/GVONavish/GVORenderer.cpp

index 6bf1bfd..c8f24dd 100644 (file)
@@ -334,6 +334,7 @@ void GVORenderer::renderShipRouteList( int width, int height, const GVOShipRoute
        _ASSERT(shipRouteList != NULL);
 
        const float lineWidth = max<float>( 1, float( 1 * m_viewScale ) );
+       const float hilightLineWidth = lineWidth * 1.5f;
        ::glLineWidth( lineWidth );
        // \8dÅ\90V\8dq\98H\88È\8aO\82ð\94¼\93§\96¾\82Å\95`\89æ
        if ( 1 < shipRouteList->getList().size() ) {
@@ -353,12 +354,12 @@ void GVORenderer::renderShipRouteList( int width, int height, const GVOShipRoute
                if ( route->isFavorite() ) {
                        ::glColor4f( 1.0f, 1.0f, 0.0f, 0.75f );
                        if ( route->isHilight() ) {
-                               ::glLineWidth( lineWidth * 2 );
+                               ::glLineWidth( hilightLineWidth );
                        }
                }
                else {
                        if ( route->isHilight() ) {
-                               ::glLineWidth( lineWidth * 2 );
+                               ::glLineWidth( hilightLineWidth );
                                ::glColor4f( 0.5f, 1.0f, 1.0f, 0.75f );
                        }
                        else {