Loading common/gal/opengl/opengl_gal.cpp +10 −22 Original line number Original line Diff line number Diff line Loading @@ -1182,8 +1182,6 @@ void OPENGL_GAL::DrawCurve( const VECTOR2D& aStartPoint, const VECTOR2D& aContro void OPENGL_GAL::SetStrokeColor( COLOR4D aColor ) void OPENGL_GAL::SetStrokeColor( COLOR4D aColor ) { if( strokeColor != aColor ) { { isSetAttributes = true; isSetAttributes = true; strokeColor = aColor; strokeColor = aColor; Loading @@ -1191,37 +1189,27 @@ void OPENGL_GAL::SetStrokeColor( COLOR4D aColor ) // This is the default drawing color // This is the default drawing color glColor4d( aColor.r, aColor.g, aColor.b, aColor.a ); glColor4d( aColor.r, aColor.g, aColor.b, aColor.a ); } } } void OPENGL_GAL::SetFillColor( COLOR4D aColor ) void OPENGL_GAL::SetFillColor( COLOR4D aColor ) { if( fillColor != aColor ) { { isSetAttributes = true; isSetAttributes = true; fillColor = aColor; fillColor = aColor; } } } void OPENGL_GAL::SetBackgroundColor( COLOR4D aColor ) void OPENGL_GAL::SetBackgroundColor( COLOR4D aColor ) { if( backgroundColor != aColor ) { { isSetAttributes = true; isSetAttributes = true; backgroundColor = aColor; backgroundColor = aColor; } } } void OPENGL_GAL::SetLineWidth( double aLineWidth ) void OPENGL_GAL::SetLineWidth( double aLineWidth ) { if( lineWidth != aLineWidth ) { { isSetAttributes = true; isSetAttributes = true; lineWidth = aLineWidth; lineWidth = aLineWidth; } } } void OPENGL_GAL::ClearScreen() void OPENGL_GAL::ClearScreen() Loading Loading
common/gal/opengl/opengl_gal.cpp +10 −22 Original line number Original line Diff line number Diff line Loading @@ -1182,8 +1182,6 @@ void OPENGL_GAL::DrawCurve( const VECTOR2D& aStartPoint, const VECTOR2D& aContro void OPENGL_GAL::SetStrokeColor( COLOR4D aColor ) void OPENGL_GAL::SetStrokeColor( COLOR4D aColor ) { if( strokeColor != aColor ) { { isSetAttributes = true; isSetAttributes = true; strokeColor = aColor; strokeColor = aColor; Loading @@ -1191,37 +1189,27 @@ void OPENGL_GAL::SetStrokeColor( COLOR4D aColor ) // This is the default drawing color // This is the default drawing color glColor4d( aColor.r, aColor.g, aColor.b, aColor.a ); glColor4d( aColor.r, aColor.g, aColor.b, aColor.a ); } } } void OPENGL_GAL::SetFillColor( COLOR4D aColor ) void OPENGL_GAL::SetFillColor( COLOR4D aColor ) { if( fillColor != aColor ) { { isSetAttributes = true; isSetAttributes = true; fillColor = aColor; fillColor = aColor; } } } void OPENGL_GAL::SetBackgroundColor( COLOR4D aColor ) void OPENGL_GAL::SetBackgroundColor( COLOR4D aColor ) { if( backgroundColor != aColor ) { { isSetAttributes = true; isSetAttributes = true; backgroundColor = aColor; backgroundColor = aColor; } } } void OPENGL_GAL::SetLineWidth( double aLineWidth ) void OPENGL_GAL::SetLineWidth( double aLineWidth ) { if( lineWidth != aLineWidth ) { { isSetAttributes = true; isSetAttributes = true; lineWidth = aLineWidth; lineWidth = aLineWidth; } } } void OPENGL_GAL::ClearScreen() void OPENGL_GAL::ClearScreen() Loading