Haikudepot: Draw BarberPole border only when displayed
This commit is contained in:
@@ -211,11 +211,11 @@ BarberPole::Draw(BRect updateRect)
|
|||||||
position += fStripeWidth;
|
position += fStripeWidth;
|
||||||
}
|
}
|
||||||
SetDrawingMode(B_OP_COPY);
|
SetDrawingMode(B_OP_COPY);
|
||||||
|
// Draw box around it
|
||||||
|
bounds = Bounds();
|
||||||
|
be_control_look->DrawBorder(this, bounds, updateRect,
|
||||||
|
ui_color(B_PANEL_BACKGROUND_COLOR), B_PLAIN_BORDER);
|
||||||
}
|
}
|
||||||
// Draw box around it
|
|
||||||
BRect bounds = Bounds();
|
|
||||||
be_control_look->DrawBorder(this, bounds, updateRect,
|
|
||||||
ui_color(B_PANEL_BACKGROUND_COLOR), B_PLAIN_BORDER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user