mostly trying to optimize and clarify ui_x11
This commit is contained in:
parent
ca38afdfa8
commit
777e4100fb
5 changed files with 376 additions and 539 deletions
2
src/ui.c
2
src/ui.c
|
@ -143,7 +143,7 @@ letter_t small_font[ 128 ] = {
|
||||||
|
|
||||||
void ( *ui_disp_draw_nibble )( word_20 addr, word_4 val );
|
void ( *ui_disp_draw_nibble )( word_20 addr, word_4 val );
|
||||||
void ( *ui_menu_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_update_LCD )( void );
|
||||||
void ( *ui_refresh_LCD )( void );
|
void ( *ui_refresh_LCD )( void );
|
||||||
void ( *ui_adjust_contrast )( void );
|
void ( *ui_adjust_contrast )( void );
|
||||||
|
|
2
src/ui.h
2
src/ui.h
|
@ -51,7 +51,7 @@ extern void ( *ui_menu_draw_nibble )( word_20 addr, word_4 val );
|
||||||
/*****************************************/
|
/*****************************************/
|
||||||
/* used in: emu_emulate.c */
|
/* 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_adjust_contrast )( void );
|
||||||
extern void ( *ui_draw_annunc )( void );
|
extern void ( *ui_draw_annunc )( void );
|
||||||
|
|
||||||
|
|
|
@ -1734,7 +1734,7 @@ static void SDLCreateHP( void )
|
||||||
/**********/
|
/**********/
|
||||||
/* public */
|
/* public */
|
||||||
/**********/
|
/**********/
|
||||||
int sdl_get_event( void )
|
void sdl_get_event( void )
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
int hpkey;
|
int hpkey;
|
||||||
|
@ -1911,8 +1911,6 @@ int sdl_get_event( void )
|
||||||
dispupdate_t1 = dispupdate_t2;
|
dispupdate_t1 = dispupdate_t2;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void sdl_update_LCD( void )
|
void sdl_update_LCD( void )
|
||||||
|
|
|
@ -361,7 +361,7 @@ void text_draw_annunc( void )
|
||||||
|
|
||||||
void text_adjust_contrast( void ) { text_update_LCD(); }
|
void text_adjust_contrast( void ) { text_update_LCD(); }
|
||||||
|
|
||||||
int text_get_event( void )
|
void text_get_event( void )
|
||||||
{
|
{
|
||||||
int hpkey = -1;
|
int hpkey = -1;
|
||||||
uint32_t k;
|
uint32_t k;
|
||||||
|
@ -553,8 +553,6 @@ int text_get_event( void )
|
||||||
if ( !keyboard[ hpkey ].pressed )
|
if ( !keyboard[ hpkey ].pressed )
|
||||||
press_key( hpkey );
|
press_key( hpkey );
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void text_ui_stop()
|
void text_ui_stop()
|
||||||
|
|
427
src/ui_x11.c
427
src/ui_x11.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue