From c737183da9956ad354f4ab0b48727b8f7dc6e151 Mon Sep 17 00:00:00 2001 From: Adi Oanca Date: Thu, 31 Mar 2005 16:51:07 +0000 Subject: [PATCH] Updated test app as app_server clears the BViews' background color now git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12198 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/app/windows/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/servers/app/windows/main.cpp b/src/tests/servers/app/windows/main.cpp index 060ab8b6cb..30d266035a 100644 --- a/src/tests/servers/app/windows/main.cpp +++ b/src/tests/servers/app/windows/main.cpp @@ -19,8 +19,8 @@ class HelloView : public BView { // printf("HelloView::Draw()\n"); // updateRect.PrintToStream(); - SetHighColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - FillRect(updateRect); +// SetHighColor(ui_color(B_PANEL_BACKGROUND_COLOR)); +// FillRect(updateRect); BRect r(Bounds()); // r.PrintToStream(); @@ -46,8 +46,8 @@ show_window(BRect frame, const char* name) BView* view = new HelloView(window->Bounds(), "test", B_FOLLOW_ALL, B_WILL_DRAW/* | B_FULL_UPDATE_ON_RESIZE*/); + view->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); window->AddChild(view); - /* BRect b(view->Bounds()); b.InsetBy(10.0, 20.0); BTextControl* control = new BTextControl(b, "tc", "Text", "Enter Text Here", NULL);