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:
parent
5f2edc0ffc
commit
be85e14208
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user