From be85e1420822ee051d847e71224c81a907956c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 24 Jul 2005 18:32:05 +0000 Subject: [PATCH] initializing the system palette before creating the desktop and driver fixes the bug that the desktop is first shown in the wrong colors on 8 bit screens git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13817 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/AppServer.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/servers/app/AppServer.cpp b/src/servers/app/AppServer.cpp index 0ec63141f8..8f9d3d56c0 100644 --- a/src/servers/app/AppServer.cpp +++ b/src/servers/app/AppServer.cpp @@ -69,9 +69,6 @@ port_id gAppServerPort; static AppServer *sAppServer; -//! Default background color for workspaces -//RGBColor workspace_default_color(51,102,160); - //! System-wide GUI color object ColorSet gGUIColorSet; @@ -168,17 +165,18 @@ AppServer::AppServer() : gScreenManager = new ScreenManager(); - // Set up the Desktop - gDesktop = new Desktop(); - gDesktop->Init(); - gDesktop->Run(); - - // TODO: Maybe this is not the best place for this + // the system palette needs to be initialized before the desktop, + // since it is used there already InitializeColorMap(); // Create the bitmap allocator. Object declared in BitmapManager.cpp gBitmapManager = new BitmapManager(); + // Set up the Desktop + gDesktop = new Desktop(); + gDesktop->Init(); + gDesktop->Run(); + // Spawn our thread-monitoring thread fPicassoThreadID = spawn_thread(PicassoThread, "picasso", B_NORMAL_PRIORITY, this); if (fPicassoThreadID >= 0)