JimMarlowe 9 anni fa
parent
commit
f0dbd93cc8

+ 8 - 8
Source/ThirdParty/TurboBadger/tb_atomic_widgets.cpp

@@ -41,8 +41,8 @@ TBColorWidget::TBColorWidget() : color_(), alpha_ ( 1.0f)
 
 void TBColorWidget::SetColor ( const char *name )
 {
-	if ( name )
-  	 color_.SetFromString(name, strlen(name));
+    if ( name )
+        color_.SetFromString(name, strlen(name));
      
     InvalidateSkinStates();
     Invalidate();
@@ -181,8 +181,8 @@ void TBColorWheel::SetMarkerY ( int value )
 
 void TBColorWheel::SetMarkerColor ( const char *name )
 {
- 	if ( name )
-  	 markercolor_.SetFromString(name, strlen(name));
+    if ( name )
+        markercolor_.SetFromString(name, strlen(name));
      
     Invalidate();
 }
@@ -206,8 +206,8 @@ TBBarGraph::TBBarGraph() : color_(255,255,255,255), m_value (0.0), m_axis(AXIS_X
 
 void TBBarGraph::SetColor ( const char *name )
 {
-	if ( name )
-  	 color_.SetFromString(name, strlen(name));
+    if ( name )
+        color_.SetFromString(name, strlen(name));
      
     InvalidateSkinStates();
     Invalidate();
@@ -243,10 +243,10 @@ void TBBarGraph::OnPaint(const PaintProps &paint_props)
         local_rect.y = local_rect.h - (int)h1;
         local_rect.h = (int)h1;
         if ( m_margin > 0 && m_margin < (local_rect.w/2)-2 )
-		{
+        {
             local_rect.w -= (m_margin*2);
             local_rect.x += m_margin;
-		}
+        }
     }
     g_renderer->DrawRectFill(local_rect, color_);
 }

+ 5 - 5
Source/ThirdParty/TurboBadger/tb_atomic_widgets.h

@@ -56,7 +56,7 @@ public:
 
 private:
 
-	TBColor color_;
+    TBColor color_;
     float alpha_;
 };
 
@@ -85,7 +85,7 @@ private:
 
     int markerx_;
     int markery_; // where we clicked, put a box there
-	TBColor markercolor_; // what color box, default = black
+    TBColor markercolor_; // what color box, default = black
     float hue_;   // varies with the angle
     float saturation_; // varies with the radius.
 
@@ -106,7 +106,7 @@ public:
 };
 
 
-// simple bargraph, plots 0.0 to 100.0 in the selected color
+/// TBBarGraph a simple bargraph, plots 0.0 to 100.0 in the selected color
 class TBBarGraph : public TBWidget
 {
 public:
@@ -131,10 +131,10 @@ public:
     virtual unsigned GetMargin() const { return m_margin; }
 
 private:
-	TBColor color_;
+    TBColor color_;
     double m_value;
     AXIS m_axis;
-	unsigned m_margin;
+    unsigned m_margin;
 };