Haikudepot: Draw BarberPole border only when displayed

This commit is contained in:
Janus
2018-02-24 13:29:07 +01:00
parent b5ace95f87
commit be5456794b
@@ -211,12 +211,12 @@ BarberPole::Draw(BRect updateRect)
position += fStripeWidth; position += fStripeWidth;
} }
SetDrawingMode(B_OP_COPY); SetDrawingMode(B_OP_COPY);
}
// Draw box around it // Draw box around it
BRect bounds = Bounds(); bounds = Bounds();
be_control_look->DrawBorder(this, bounds, updateRect, be_control_look->DrawBorder(this, bounds, updateRect,
ui_color(B_PANEL_BACKGROUND_COLOR), B_PLAIN_BORDER); ui_color(B_PANEL_BACKGROUND_COLOR), B_PLAIN_BORDER);
} }
}
void void