From c7b650c800f3bd1539361494fa044cf299c1b868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 26 May 2006 22:27:13 +0000 Subject: [PATCH] * because of my last change, the background was filled even though the app_server already did it git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17603 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/TitleView.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/kits/tracker/TitleView.cpp b/src/kits/tracker/TitleView.cpp index 1ab241dbac..8d6dbf6495 100644 --- a/src/kits/tracker/TitleView.cpp +++ b/src/kits/tracker/TitleView.cpp @@ -49,6 +49,8 @@ All rights reserved. #include "PoseView.h" #include "Utilities.h" +#define APP_SERVER_CLEARS_BACKGROUND 1 + static rgb_color sTitleBackground; static rgb_color sDarkTitleBackground; static rgb_color sShineColor; @@ -114,8 +116,11 @@ BTitleView::BTitleView(BRect frame, BPoseView *view) SetHighColor(sTitleBackground); SetLowColor(sTitleBackground); +#if APP_SERVER_CLEARS_BACKGROUND SetViewColor(sTitleBackground); -//SetViewColor(B_TRANSPARENT_COLOR); +#else + SetViewColor(B_TRANSPARENT_COLOR); +#endif BFont font(be_plain_font); font.SetSize(9); @@ -251,8 +256,10 @@ BTitleView::Draw(BRect, bool useOffscreen, bool updateOnly, BPoint(maxx, bounds.bottom), sShineColor); view->EndLineArray(); +#if !(APP_SERVER_CLEARS_BACKGROUND) FillRect(BRect(bounds.left, bounds.top + 1, minx - 1, bounds.bottom - 1), B_SOLID_LOW); FillRect(BRect(maxx + 1, bounds.top + 1, bounds.right, bounds.bottom - 1), B_SOLID_LOW); +#endif if (useOffscreen) { if (trackRectBlitter)