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 )
|
void setup_frontend( void )
|
||||||
{
|
{
|
||||||
switch ( frontend_type ) {
|
switch ( frontend_type ) {
|
||||||
|
#if defined(HAS_X11)
|
||||||
case FRONTEND_X11:
|
case FRONTEND_X11:
|
||||||
default:
|
default:
|
||||||
#ifdef HAS_X11
|
|
||||||
init_ui = init_x11_ui;
|
init_ui = init_x11_ui;
|
||||||
#else
|
|
||||||
fprintf( stderr, "ERROR: x11 frontend disabled at compilation\n" );
|
|
||||||
exit( -1 );
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAS_SDL)
|
||||||
case FRONTEND_SDL:
|
case FRONTEND_SDL:
|
||||||
#ifdef HAS_SDL
|
#if (!defined(HAS_X11)
|
||||||
init_ui = init_sdl_ui;
|
default:
|
||||||
#else
|
|
||||||
fprintf( stderr, "ERROR: sdl frontend disabled at compilation\n" );
|
|
||||||
exit( -1 );
|
|
||||||
#endif
|
#endif
|
||||||
|
init_ui = init_sdl_ui;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case FRONTEND_TEXT:
|
case FRONTEND_TEXT:
|
||||||
|
#if (!defined(HAS_X11) && !defined(HAS_SDL))
|
||||||
|
default:
|
||||||
|
#endif
|
||||||
init_ui = init_text_ui;
|
init_ui = init_text_ui;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue