From 8a7fc0d34eaa64605dc57e3179502a99b1510b6a Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 16 Jul 1998 17:33:34 +0000 Subject: [PATCH] "H" / "h" now control hud brightness as well with off being one of the states. Better checking for xmesa/fx 3dfx fullscreen/window support for deciding whether or not to build in the feature. Translucent menu support. HAVE_AUDIO_SUPPORT -> ENABLE_AUDIO_SUPPORT Use fork() / wait() for playing mp3 init music in background under unix. Changed default tile diameter to 5. --- Main/GLUTkey.cxx | 25 ++++++++++++++++--- Main/GLUTmain.cxx | 62 +++++++++++++++++++++++++++++++++++------------ Main/Makefile.am | 10 +++++--- Main/options.cxx | 12 ++++++++- 4 files changed, 85 insertions(+), 24 deletions(-) diff --git a/Main/GLUTkey.cxx b/Main/GLUTkey.cxx index c176504fe..3c68267a7 100644 --- a/Main/GLUTkey.cxx +++ b/Main/GLUTkey.cxx @@ -39,6 +39,7 @@ #include #include // Added autopilot.h to list, Jeff Goeke-Smith +#include #include #include #include @@ -99,8 +100,9 @@ void GLUTkey(unsigned char k, int x, int y) { v->goal_view_offset = FG_PI * 1.75; return; case 72: /* H key */ - status = current_options.get_hud_status(); - current_options.set_hud_status(!status); + // status = current_options.get_hud_status(); + // current_options.set_hud_status(!status); + HUD_brightkey( true ); return; case 77: /* M key */ t->warp -= 60; @@ -111,7 +113,9 @@ void GLUTkey(unsigned char k, int x, int y) { case 87: /* W key */ #if defined(FX) && !defined(WIN32) fullscreen = ( !fullscreen ); +#if defined(XMESA_FX_FULLSCREEN) && defined(XMESA_FX_WINDOW) XMesaSetFXmode(fullscreen ? XMESA_FX_FULLSCREEN : XMESA_FX_WINDOW); +#endif #endif return; case 88: /* X key */ @@ -177,6 +181,9 @@ void GLUTkey(unsigned char k, int x, int y) { case 51: /* numeric keypad 3 (Pg Dn) */ fgThrottleMove(0, -0.01); return; + case 104: /* h key */ + HUD_brightkey( false ); + return; case 109: /* m key */ t->warp += 60; return; @@ -298,9 +305,19 @@ void GLUTspecialkey(int k, int x, int y) { /* $Log$ -/* Revision 1.15 1998/07/13 21:01:34 curt -/* Wrote access functions for current fgOPTIONS. +/* Revision 1.16 1998/07/16 17:33:34 curt +/* "H" / "h" now control hud brightness as well with off being one of the +/* states. +/* Better checking for xmesa/fx 3dfx fullscreen/window support for deciding +/* whether or not to build in the feature. +/* Translucent menu support. +/* HAVE_AUDIO_SUPPORT -> ENABLE_AUDIO_SUPPORT +/* Use fork() / wait() for playing mp3 init music in background under unix. +/* Changed default tile diameter to 5. /* + * Revision 1.15 1998/07/13 21:01:34 curt + * Wrote access functions for current fgOPTIONS. + * * Revision 1.14 1998/07/06 02:42:02 curt * Added support for switching between fullscreen and window mode for * Mesa/3dfx/glide. diff --git a/Main/GLUTmain.cxx b/Main/GLUTmain.cxx index bea6d4215..b4d7f400f 100644 --- a/Main/GLUTmain.cxx +++ b/Main/GLUTmain.cxx @@ -45,7 +45,9 @@ #include /* for stat() */ #ifdef HAVE_UNISTD_H -# include /* for stat() */ +# include /* for fork() && stat() */ +# include /* for wait() */ +# include /* for wait() */ #endif #include // for VERSION @@ -58,7 +60,7 @@ #include #include -#ifdef HAVE_AUDIO_SUPPORT +#ifdef ENABLE_AUDIO_SUPPORT # include