From a2236c14c0e8aac44e874d405c4ccd83b16a4989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 15 Nov 2005 00:07:42 +0000 Subject: [PATCH] The mouse down/moved area is now the same as the one drawn... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14928 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/ColorControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/ColorControl.cpp b/src/kits/interface/ColorControl.cpp index 195318b51c..0952a44ee6 100644 --- a/src/kits/interface/ColorControl.cpp +++ b/src/kits/interface/ColorControl.cpp @@ -217,7 +217,7 @@ BColorControl::MouseDown(BPoint point) { rgb_color color = ValueAsColor(); - BRect rect(0.0f, 0.0f, fColumns * fCellSize, fRows * fCellSize); + BRect rect(0.0f, 0.0f, fColumns * fCellSize, Bounds().bottom); float rampsize = rect.bottom / 4; uint8 shade = (unsigned char)max_c(0, @@ -334,7 +334,7 @@ BColorControl::MouseMoved(BPoint point, uint32 transit, rgb_color color = ValueAsColor(); - BRect rect(0.0f, 0.0f, fColumns * fCellSize, fRows * fCellSize); + BRect rect(0.0f, 0.0f, fColumns * fCellSize, Bounds().bottom); uint8 shade = (unsigned char)max_c(0, min_c((point.x - 2) * 255 / (rect.Width() - 4.0f), 255));