From 2833e9ea831b0c2e869808688769d5d63c60b197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 4 Apr 2009 08:08:51 +0000 Subject: [PATCH] * Fix drawing the background if needed on other shelfs than Tracker (untested). * Fix invalidating the whole view when receiving a color drop, since the frame around the text input is also affected now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29893 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskcalc/CalcView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/deskcalc/CalcView.cpp b/src/apps/deskcalc/CalcView.cpp index 03f3ef6052..e5ddf6408a 100644 --- a/src/apps/deskcalc/CalcView.cpp +++ b/src/apps/deskcalc/CalcView.cpp @@ -284,7 +284,7 @@ void CalcView::Draw(BRect updateRect) { bool drawBackground = true; - if (Parent() && Window()->Bounds() != Frame()) { + if (Parent() && (Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0) { // CalcView is embedded somewhere, most likely the Tracker Desktop // shelf. drawBackground = false; @@ -758,8 +758,8 @@ CalcView::Paste(BMessage *message) if (keypadRect.Contains(dropPoint) && dropColor) { fBaseColor = *dropColor; _Colorize(); - // redraw keypad - Invalidate(keypadRect); + // redraw + Invalidate(); } } else {