Skip to content

Commit

Permalink
Fixed|Windows|UI|Client: Reverted some of the startup busy mode changes
Browse files Browse the repository at this point in the history
It appears that on Windows not running the busy mode leads to the mouse
cursor being permanently hidden for some reason. Should be investigated...
  • Loading branch information
skyjake committed Jan 24, 2016
1 parent 918db1f commit 5ca1698
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
5 changes: 1 addition & 4 deletions doomsday/apps/client/src/busyrunner.cpp
Expand Up @@ -185,10 +185,7 @@ BusyRunner::Result BusyRunner::runTask(BusyTask *task)
BusyVisual_PrepareResources();

de::ProgressWidget &prog = ClientWindow::main().busy().progress();
if(!(task->mode & BUSYF_STARTUP))
{
prog.show();
}
prog.show();
prog.setText(task->name);
prog.setMode(task->mode & BUSYF_ACTIVITY? de::ProgressWidget::Indefinite :
de::ProgressWidget::Ranged);
Expand Down
21 changes: 9 additions & 12 deletions doomsday/apps/client/src/dd_main.cpp
Expand Up @@ -170,7 +170,7 @@ class WadFileType : public de::NativeFileType
};

static dint DD_StartupWorker(void *context);
//static dint DD_DummyWorker(void *context);
static dint DD_DummyWorker(void *context);

dint isDedicated;
dint verbose; ///< For debug messages (-verbose).
Expand Down Expand Up @@ -965,12 +965,10 @@ static void initialize()
FR_Init();

// Enter busy mode until startup complete.
//Con_InitProgress2(200, 0, .25f); // First half.
Con_InitProgress(200);
#endif
/*BusyMode_RunNewTaskWithName(BUSYF_NO_UPLOADS | BUSYF_STARTUP | BUSYF_PROGRESS_BAR | (verbose? BUSYF_CONSOLE_OUTPUT : 0),
DD_StartupWorker, 0, "Starting up...");*/

DD_StartupWorker(nullptr);
BusyMode_RunNewTaskWithName(BUSYF_NO_UPLOADS | BUSYF_STARTUP | BUSYF_PROGRESS_BAR | (verbose? BUSYF_CONSOLE_OUTPUT : 0),
DD_StartupWorker, 0, "Starting up...");

// Engine initialization is complete. Now finish up with the GL.
#ifdef __CLIENT__
Expand All @@ -983,11 +981,10 @@ static void initialize()

#ifdef __CLIENT__
// Do deferred uploads.
//Con_InitProgress2(200, .25f, .25f); // Stop here for a while.
Con_SetProgress(100);
#endif
//BusyMode_RunNewTaskWithName(BUSYF_STARTUP | BUSYF_PROGRESS_BAR | (verbose? BUSYF_CONSOLE_OUTPUT : 0),
// DD_DummyWorker, 0, "Buffering...");
//DD_DummyWorker(nullptr);
BusyMode_RunNewTaskWithName(BUSYF_STARTUP | BUSYF_PROGRESS_BAR | (verbose? BUSYF_CONSOLE_OUTPUT : 0),
DD_DummyWorker, 0, "Buffering...");

#if 0
// Add resource paths specified using -iwad on the command line.
Expand Down Expand Up @@ -1024,7 +1021,7 @@ static void initialize()
// Try to locate all required data files for all registered games.
//
#ifdef __CLIENT__
//Con_InitProgress2(200, .25f, 1); // Second half.
Con_SetProgress(200);
#endif
App_Games().checkReadiness();

Expand Down Expand Up @@ -1349,7 +1346,7 @@ static dint DD_StartupWorker(void * /*context*/)
return 0;
}

#if 0
#if 1
/**
* This only exists so we have something to call while the deferred uploads of the
* startup are processed.
Expand Down
2 changes: 0 additions & 2 deletions doomsday/apps/client/src/ui/clientwindow.cpp
Expand Up @@ -324,8 +324,6 @@ DENG2_PIMPL(ClientWindow)

void appStartupCompleted()
{
setupFadeFromBlack(2);

// Allow the background image to show.
background->setImageColor(Vector4f(1, 1, 1, 1));
taskBar->show();
Expand Down

0 comments on commit 5ca1698

Please sign in to comment.