re-arrange code
This commit is contained in:
parent
923bcabc5c
commit
35f3cd2098
3 changed files with 5 additions and 4 deletions
|
@ -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 ) {
|
||||
|
|
|
@ -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 */
|
||||
|
|
2
src/ui.h
2
src/ui.h
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue