Fixed gui requesters not getting drawn until an event was triggered
This commit is contained in:
parent
d513fc09de
commit
34865818c2
7 changed files with 29 additions and 2 deletions
|
@ -365,6 +365,10 @@ bool CreateFilesysHardfile()
|
|||
txtBootPri->setText("0");
|
||||
txtSize->setText("100");
|
||||
|
||||
// Prepare the screen once
|
||||
uae_gui->logic();
|
||||
uae_gui->draw();
|
||||
|
||||
CreateFilesysHardfileLoop();
|
||||
ExitCreateFilesysHardfile();
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
//-------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue