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:
John Scipione 2012-10-23 20:35:09 -04:00
parent ee3c886743
commit 97d1235cef
1 changed files with 4 additions and 0 deletions

View File

@ -672,6 +672,10 @@ KeyboardLayoutView::_DrawKey(BView* view, BRect updateRect, const Key* key,
region.Exclude(bottomLeft);
view->ConstrainClippingRegion(&region);
// 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,