defaults UI to those compiled in: x11 > sdl > tui
This commit is contained in:
parent
fd2ba567b0
commit
2c1596478d
1 changed files with 10 additions and 10 deletions
20
src/ui.c
20
src/ui.c
|
@ -153,26 +153,26 @@ void ( *init_ui )( int argc, char** argv );
|
|||
void setup_frontend( void )
|
||||
{
|
||||
switch ( frontend_type ) {
|
||||
#if defined(HAS_X11)
|
||||
case FRONTEND_X11:
|
||||
default:
|
||||
#ifdef HAS_X11
|
||||
init_ui = init_x11_ui;
|
||||
#else
|
||||
fprintf( stderr, "ERROR: x11 frontend disabled at compilation\n" );
|
||||
exit( -1 );
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(HAS_SDL)
|
||||
case FRONTEND_SDL:
|
||||
#ifdef HAS_SDL
|
||||
init_ui = init_sdl_ui;
|
||||
#else
|
||||
fprintf( stderr, "ERROR: sdl frontend disabled at compilation\n" );
|
||||
exit( -1 );
|
||||
#if (!defined(HAS_X11)
|
||||
default:
|
||||
#endif
|
||||
init_ui = init_sdl_ui;
|
||||
break;
|
||||
#endif
|
||||
|
||||
case FRONTEND_TEXT:
|
||||
#if (!defined(HAS_X11) && !defined(HAS_SDL))
|
||||
default:
|
||||
#endif
|
||||
init_ui = init_text_ui;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue