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
This commit is contained in:
Stephan Aßmus 2005-07-24 18:32:05 +00:00
parent 5f2edc0ffc
commit be85e14208

View File

@ -69,9 +69,6 @@ port_id gAppServerPort;
static AppServer *sAppServer; static AppServer *sAppServer;
//! Default background color for workspaces
//RGBColor workspace_default_color(51,102,160);
//! System-wide GUI color object //! System-wide GUI color object
ColorSet gGUIColorSet; ColorSet gGUIColorSet;
@ -168,17 +165,18 @@ AppServer::AppServer() :
gScreenManager = new ScreenManager(); gScreenManager = new ScreenManager();
// Set up the Desktop // the system palette needs to be initialized before the desktop,
gDesktop = new Desktop(); // since it is used there already
gDesktop->Init();
gDesktop->Run();
// TODO: Maybe this is not the best place for this
InitializeColorMap(); InitializeColorMap();
// Create the bitmap allocator. Object declared in BitmapManager.cpp // Create the bitmap allocator. Object declared in BitmapManager.cpp
gBitmapManager = new BitmapManager(); gBitmapManager = new BitmapManager();
// Set up the Desktop
gDesktop = new Desktop();
gDesktop->Init();
gDesktop->Run();
// Spawn our thread-monitoring thread // Spawn our thread-monitoring thread
fPicassoThreadID = spawn_thread(PicassoThread, "picasso", B_NORMAL_PRIORITY, this); fPicassoThreadID = spawn_thread(PicassoThread, "picasso", B_NORMAL_PRIORITY, this);
if (fPicassoThreadID >= 0) if (fPicassoThreadID >= 0)