*** empty log message ***

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3533 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marc Flerackers
2003-06-16 06:33:32 +00:00
parent 1e90e22397
commit 64603764f9
+10 -12
View File
@@ -85,8 +85,8 @@ void BCheckBox::Draw(BRect updateRect)
// If the focus is changing, just redraw the focus indicator // If the focus is changing, just redraw the focus indicator
if (IsFocusChanging()) if (IsFocusChanging())
{ {
float x = ceil(10.0f + fh.ascent); float x = (float)ceil(10.0f + fh.ascent);
float y = 5.0f + ceil(fh.ascent); float y = 5.0f + (float)ceil(fh.ascent);
if (IsFocus()) if (IsFocus())
SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR)); SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR));
@@ -107,7 +107,8 @@ void BCheckBox::Draw(BRect updateRect)
darken4 = tint_color(no_tint, B_DARKEN_4_TINT), darken4 = tint_color(no_tint, B_DARKEN_4_TINT),
darkenmax = tint_color(no_tint, B_DARKEN_MAX_TINT); darkenmax = tint_color(no_tint, B_DARKEN_MAX_TINT);
BRect rect(1.0f, 3.0f, ceil(3.0f + fh.ascent), ceil(5.0f + fh.ascent)); BRect rect(1.0f, 3.0f, (float)ceil(3.0f + fh.ascent),
(float)ceil(5.0f + fh.ascent));
if (IsEnabled()) if (IsEnabled())
{ {
@@ -173,14 +174,14 @@ void BCheckBox::Draw(BRect updateRect)
// Label // Label
SetHighColor(darkenmax); SetHighColor(darkenmax);
DrawString(Label(), BPoint(ceil(10.0f + fh.ascent), DrawString(Label(), BPoint((float)ceil(10.0f + fh.ascent),
3.0f + ceil(fh.ascent))); 3.0f + (float)ceil(fh.ascent)));
// Focus // Focus
if (IsFocus()) if (IsFocus())
{ {
float x = ceil(10.0f + fh.ascent); float x = (float)ceil(10.0f + fh.ascent);
float y = 5.0f + ceil(fh.ascent); float y = 5.0f + (float)ceil(fh.ascent);
SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR)); SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR));
StrokeLine(BPoint(x, y), BPoint(x + StringWidth(Label()), y)); StrokeLine(BPoint(x, y), BPoint(x + StringWidth(Label()), y));
@@ -228,8 +229,8 @@ void BCheckBox::Draw(BRect updateRect)
// Label // Label
SetHighColor(tint_color(no_tint, B_DISABLED_LABEL_TINT)); SetHighColor(tint_color(no_tint, B_DISABLED_LABEL_TINT));
DrawString(Label(), BPoint(ceil(10.0f + fh.ascent), DrawString(Label(), BPoint((float)ceil(10.0f + fh.ascent),
3.0f + ceil(fh.ascent))); 3.0f + (float)ceil(fh.ascent)));
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@@ -316,8 +317,6 @@ void BCheckBox::MouseUp(BPoint point)
Flush(); Flush();
} }
if (fOutlined)
{
if (fOutlined) if (fOutlined)
{ {
fOutlined = false; fOutlined = false;
@@ -329,7 +328,6 @@ void BCheckBox::MouseUp(BPoint point)
Draw(Bounds()); Draw(Bounds());
Flush(); Flush();
} }
}
SetTracking(false); SetTracking(false);
} }