Fixed gui requesters not getting drawn until an event was triggered

This commit is contained in:
Dimitris Panokostas 2018-01-21 12:36:15 +01:00
parent d513fc09de
commit 34865818c2
7 changed files with 29 additions and 2 deletions

View file

@ -365,6 +365,10 @@ bool CreateFilesysHardfile()
txtBootPri->setText("0");
txtSize->setText("100");
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
CreateFilesysHardfileLoop();
ExitCreateFilesysHardfile();

View file

@ -581,6 +581,10 @@ bool EditFilesysHardfile(const int unit_no)
cboUnit->setSelected(0);
}
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
EditFilesysHardfileLoop();
if (dialogResult)

View file

@ -35,8 +35,6 @@
#define DIALOG_WIDTH 520
#define DIALOG_HEIGHT 202
extern struct host_input_button host_input_buttons[MAX_INPUT_DEVICES];
extern string volName;
static bool dialogResult = false;
@ -388,6 +386,10 @@ bool EditFilesysVirtual(const int unit_no)
txtBootPri->setText("0");
}
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
EditFilesysVirtualLoop();
if (dialogResult)

View file

@ -242,6 +242,10 @@ void InGameMessage(const char* msg)
if (GUIjoy == nullptr)
GUIjoy = SDL_JoystickOpen(0);
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
while (!msg_done)
{
// Poll input

View file

@ -474,6 +474,10 @@ bool SelectFile(const char* title, char* value, const char* filter[], const bool
checkfoldername(workingDir);
checkfilename(value);
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
SelectFileLoop();
#ifdef FILE_SELECT_KEEP_POSITION
wndSelectFile->releaseModalFocus();

View file

@ -348,6 +348,11 @@ bool SelectFolder(const char* title, char* value)
dialogFinished = false;
InitSelectFolder(title);
checkfoldername(value);
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
SelectFolderLoop();
ExitSelectFolder();
if (dialogResult)

View file

@ -573,6 +573,10 @@ namespace sdl
if (SDL_NumJoysticks() > 0)
GUIjoy = SDL_JoystickOpen(0);
// Prepare the screen once
uae_gui->logic();
uae_gui->draw();
//-------------------------------------------------
// The main loop
//-------------------------------------------------