Fill in the return key rect with the background color.
This eliminates artifacts that are seen when the key is drawn while being dragged.
This commit is contained in:
@@ -672,6 +672,10 @@ KeyboardLayoutView::_DrawKey(BView* view, BRect updateRect, const Key* key,
|
|||||||
region.Exclude(bottomLeft);
|
region.Exclude(bottomLeft);
|
||||||
view->ConstrainClippingRegion(®ion);
|
view->ConstrainClippingRegion(®ion);
|
||||||
|
|
||||||
|
// Fill in the rect with the background color
|
||||||
|
SetHighColor(background);
|
||||||
|
FillRect(rect);
|
||||||
|
|
||||||
// draw the button background
|
// draw the button background
|
||||||
BRect bgRect = rect.InsetByCopy(2, 2);
|
BRect bgRect = rect.InsetByCopy(2, 2);
|
||||||
be_control_look->DrawButtonBackground(view, bgRect, updateRect,
|
be_control_look->DrawButtonBackground(view, bgRect, updateRect,
|
||||||
|
|||||||
Reference in New Issue
Block a user