re-arrange code

This commit is contained in:
Gwenhael Le Moine 2024-04-09 15:51:18 +02:00
parent 923bcabc5c
commit 35f3cd2098
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
3 changed files with 5 additions and 4 deletions

View file

@ -312,7 +312,8 @@ void do_shutdown( void )
set_t1 = ticks.t1_ticks;
interrupt_called = 0;
if ( ui_get_event() && interrupt_called )
ui_get_event();
if ( interrupt_called )
wake = 1;
if ( saturn.timer2 <= 0 ) {

View file

@ -107,9 +107,9 @@ int main( int argc, char** argv )
init_display();
/* (G)UI */
setup_frontend();
init_ui( argc, argv );
ui_init_LCD();
setup_frontend(); /* points init_ui to the correct function */
init_ui( argc, argv );
/************************/
/* Start emulation loop */

View file

@ -68,7 +68,7 @@ extern void ( *ui_draw_annunc )( void );
extern void ( *init_ui )( int argc, char** argv );
/*********************************/
/* used in: debugger.c, ui_sdl.c */
/* used in: debugger.c */
/*********************************/
extern void ui_init_LCD( void );