Remove some indirection
This commit is contained in:
parent
a8acdb9d37
commit
87eb89ad33
3 changed files with 5 additions and 30 deletions
|
|
@ -128,26 +128,6 @@ void MainWindow::ShowErrorPane(const char* text)
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindow::ShowNetStartPane(const char* message, int maxpos)
|
||||
{
|
||||
NetStartWindow::ShowNetStartPane(message, maxpos);
|
||||
}
|
||||
|
||||
void MainWindow::HideNetStartPane()
|
||||
{
|
||||
NetStartWindow::HideNetStartPane();
|
||||
}
|
||||
|
||||
void MainWindow::SetNetStartProgress(int pos)
|
||||
{
|
||||
NetStartWindow::SetNetStartProgress(pos);
|
||||
}
|
||||
|
||||
bool MainWindow::RunMessageLoop(bool (*timer_callback)(void*), void* userdata)
|
||||
{
|
||||
return NetStartWindow::RunMessageLoop(timer_callback, userdata);
|
||||
}
|
||||
|
||||
bool MainWindow::CheckForRestart()
|
||||
{
|
||||
bool result = restartrequest;
|
||||
|
|
|
|||
|
|
@ -25,11 +25,6 @@ public:
|
|||
void PrintStr(const char* cp);
|
||||
void GetLog(std::function<bool(const void* data, uint32_t size, uint32_t& written)> writeFile);
|
||||
|
||||
void ShowNetStartPane(const char* message, int maxpos);
|
||||
void SetNetStartProgress(int pos);
|
||||
bool RunMessageLoop(bool (*timer_callback)(void*), void* userdata);
|
||||
void HideNetStartPane();
|
||||
|
||||
void SetWindowTitle(const char* caption);
|
||||
|
||||
HWND GetHandle() { return Window; }
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
#include "startupinfo.h"
|
||||
#include "i_interface.h"
|
||||
#include "texturemanager.h"
|
||||
#include "i_mainwindow.h"
|
||||
#include "common/widgets/netstartwindow.h"
|
||||
|
||||
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
|
||||
|
||||
|
|
@ -140,7 +140,7 @@ void FBasicStartupScreen::Progress()
|
|||
void FBasicStartupScreen::NetInit(const char *message, int numplayers)
|
||||
{
|
||||
NetMaxPos = numplayers;
|
||||
mainwindow.ShowNetStartPane(message, numplayers);
|
||||
NetStartWindow::ShowNetStartPane(message, numplayers);
|
||||
|
||||
NetMaxPos = numplayers;
|
||||
NetCurPos = 0;
|
||||
|
|
@ -157,7 +157,7 @@ void FBasicStartupScreen::NetInit(const char *message, int numplayers)
|
|||
|
||||
void FBasicStartupScreen::NetDone()
|
||||
{
|
||||
mainwindow.HideNetStartPane();
|
||||
NetStartWindow::HideNetStartPane();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
@ -180,7 +180,7 @@ void FBasicStartupScreen::NetProgress(int count)
|
|||
NetCurPos = count;
|
||||
}
|
||||
|
||||
mainwindow.SetNetStartProgress(count);
|
||||
NetStartWindow::SetNetStartProgress(count);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
@ -199,5 +199,5 @@ void FBasicStartupScreen::NetProgress(int count)
|
|||
|
||||
bool FBasicStartupScreen::NetLoop(bool (*timer_callback)(void *), void *userdata)
|
||||
{
|
||||
return mainwindow.RunMessageLoop(timer_callback, userdata);
|
||||
return NetStartWindow::RunMessageLoop(timer_callback, userdata);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue