* 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
This commit is contained in:
parent
12104c2eab
commit
c7b650c800
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user