* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2011-09-29 23:44:46 +00:00
parent f9a7bd8e55
commit 7e701a612a
+4 -13
View File
@@ -111,24 +111,15 @@ void
GradientsView::DrawRadial(BRect update) GradientsView::DrawRadial(BRect update)
{ {
BGradientRadial gradient; BGradientRadial gradient;
rgb_color c; gradient.AddColor(make_color(255, 0, 0), 0);
c.red = 255; gradient.AddColor(make_color(0, 255, 0), 127);
c.green = 0; gradient.AddColor(make_color(0, 0, 255), 255);
c.blue = 0;
gradient.AddColor(c, 0);
c.red = 0;
c.green = 255;
c.blue = 0;
gradient.AddColor(c, 127);
c.red = 0;
c.green = 0;
c.blue = 255;
gradient.AddColor(c, 255);
// RoundRect // RoundRect
SetHighColor(0, 0, 0); SetHighColor(0, 0, 0);
FillRoundRect(BRect(10, 10, 110, 110), 5, 5); FillRoundRect(BRect(10, 10, 110, 110), 5, 5);
gradient.SetCenter(BPoint(170, 60)); gradient.SetCenter(BPoint(170, 60));
gradient.SetRadius(50);
FillRoundRect(BRect(120, 10, 220, 110), 5, 5, gradient); FillRoundRect(BRect(120, 10, 220, 110), 5, 5, gradient);
// Rect // Rect