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:
parent
ee3c886743
commit
97d1235cef
|
@ -672,6 +672,10 @@ KeyboardLayoutView::_DrawKey(BView* view, BRect updateRect, const Key* key,
|
|||
region.Exclude(bottomLeft);
|
||||
view->ConstrainClippingRegion(®ion);
|
||||
|
||||
// Fill in the rect with the background color
|
||||
SetHighColor(background);
|
||||
FillRect(rect);
|
||||
|
||||
// draw the button background
|
||||
BRect bgRect = rect.InsetByCopy(2, 2);
|
||||
be_control_look->DrawButtonBackground(view, bgRect, updateRect,
|
||||
|
|
Loading…
Reference in New Issue