version 1.7 | | version 1.8 |
---|
| | |
* Game loop for Inferno | | * Game loop for Inferno |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.8 1999/09/16 03:34:15 donut |
| | * cleaned up fullscreen toggle code to make it easy to add support to other targets later, and added -nosdlvidmodecheck |
| | * |
* Revision 1.7 1999/08/30 02:24:30 donut | | * Revision 1.7 1999/08/30 02:24:30 donut |
* fixed undefined d1x_options_menu/change_res in non-SDL compiles | | * fixed undefined d1x_options_menu/change_res in non-SDL compiles |
* | | * |
| | |
//end this section addition | | //end this section addition |
| | |
//added 8/23/99 by Matt Mueller for hot key res/fullscreen changing, and menu access | | //added 8/23/99 by Matt Mueller for hot key res/fullscreen changing, and menu access |
#ifdef SDL_VIDEO | | |
extern int sdl_video_flags; | | |
#include <SDL/SDL_video.h> | | |
#endif | | |
extern void change_res(); | | extern void change_res(); |
extern void d1x_options_menu(); | | extern void d1x_options_menu(); |
//end addition -MM | | //end addition -MM |
| | |
//increase res | | //increase res |
break; | | break; |
case KEY_ALTED+KEY_SHIFTED+KEY_PADENTER: | | case KEY_ALTED+KEY_SHIFTED+KEY_PADENTER: |
#ifdef SDL_VIDEO | | #ifdef GR_SUPPORTS_FULLSCREEN_TOGGLE |
hud_message(MSGC_GAME_FEEDBACK, "toggling fullscreen mode %s",sdl_video_flags&SDL_FULLSCREEN?"off":"on" ); | | hud_message(MSGC_GAME_FEEDBACK, "toggling fullscreen mode %s",gr_toggle_fullscreen()?"on":"off" ); |
sdl_video_flags^=SDL_FULLSCREEN; | | |
grd_curscreen->sc_mode=0;//hack to get it to reset screen mode | | |
#else | | #else |
hud_message(MSGC_GAME_FEEDBACK, "fullscreen toggle not supported by this target"); | | hud_message(MSGC_GAME_FEEDBACK, "fullscreen toggle not supported by this target"); |
#endif | | #endif |