[haiku-commits] haiku: hrev44717 - src/preferences/keymap

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 24 Oct 2012 02:38:03 +0200 (CEST)

hrev44717 adds 1 changeset to branch 'master'
old head: ee3c8867434cd7d42c5efa26e591ab87eb484358
new head: 97d1235cef30c0445af4986d84671b33acb41ee9

----------------------------------------------------------------------------

97d1235: Fill in the return key rect with the background color.
  
  This eliminates artifacts that are seen when the key is drawn while
  being dragged.

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44717
Commit:      97d1235cef30c0445af4986d84671b33acb41ee9
URL:         http://cgit.haiku-os.org/haiku/commit/?id=97d1235
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Wed Oct 24 00:35:09 2012 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+)
src/preferences/keymap/KeyboardLayoutView.cpp |    4 ++++

----------------------------------------------------------------------------

diff --git a/src/preferences/keymap/KeyboardLayoutView.cpp 
b/src/preferences/keymap/KeyboardLayoutView.cpp
index 574e1b0..467e6a3 100644
--- a/src/preferences/keymap/KeyboardLayoutView.cpp
+++ b/src/preferences/keymap/KeyboardLayoutView.cpp
@@ -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,


Other related posts:

  • » [haiku-commits] haiku: hrev44717 - src/preferences/keymap - jscipione