mostly trying to optimize and clarify ui_x11

This commit is contained in:
Gwenhael Le Moine 2024-05-17 16:44:07 +02:00
parent ca38afdfa8
commit 777e4100fb
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
5 changed files with 376 additions and 539 deletions

View file

@ -143,7 +143,7 @@ letter_t small_font[ 128 ] = {
void ( *ui_disp_draw_nibble )( word_20 addr, word_4 val );
void ( *ui_menu_draw_nibble )( word_20 addr, word_4 val );
int ( *ui_get_event )( void );
void ( *ui_get_event )( void );
void ( *ui_update_LCD )( void );
void ( *ui_refresh_LCD )( void );
void ( *ui_adjust_contrast )( void );

View file

@ -51,7 +51,7 @@ extern void ( *ui_menu_draw_nibble )( word_20 addr, word_4 val );
/*****************************************/
/* used in: emu_emulate.c */
/*****************************************/
extern int ( *ui_get_event )( void );
extern void ( *ui_get_event )( void );
extern void ( *ui_adjust_contrast )( void );
extern void ( *ui_draw_annunc )( void );

View file

@ -1734,7 +1734,7 @@ static void SDLCreateHP( void )
/**********/
/* public */
/**********/
int sdl_get_event( void )
void sdl_get_event( void )
{
SDL_Event event;
int hpkey;
@ -1911,8 +1911,6 @@ int sdl_get_event( void )
dispupdate_t1 = dispupdate_t2;
}
#endif
return 1;
}
void sdl_update_LCD( void )

View file

@ -361,7 +361,7 @@ void text_draw_annunc( void )
void text_adjust_contrast( void ) { text_update_LCD(); }
int text_get_event( void )
void text_get_event( void )
{
int hpkey = -1;
uint32_t k;
@ -553,8 +553,6 @@ int text_get_event( void )
if ( !keyboard[ hpkey ].pressed )
press_key( hpkey );
}
return 1;
}
void text_ui_stop()

File diff suppressed because it is too large Load diff