version 1.21 | | version 1.22 |
---|
| | |
* Game loop for Inferno | | * Game loop for Inferno |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.22 2000/06/20 06:55:50 donut |
| | * fix (sdl) opengl infinite fullscreen toggle problem |
| | * |
* Revision 1.21 2000/04/19 21:27:56 sekmu | | * Revision 1.21 2000/04/19 21:27:56 sekmu |
* movable death-cam from WraithX | | * movable death-cam from WraithX |
* | | * |
| | |
case KEY_ALTED+KEY_SHIFTED+KEY_PADENTER: | | case KEY_ALTED+KEY_SHIFTED+KEY_PADENTER: |
#ifdef GR_SUPPORTS_FULLSCREEN_TOGGLE | | #ifdef GR_SUPPORTS_FULLSCREEN_TOGGLE |
hud_message(MSGC_GAME_FEEDBACK, "toggling fullscreen mode %s",gr_toggle_fullscreen()?"on":"off" ); | | hud_message(MSGC_GAME_FEEDBACK, "toggling fullscreen mode %s",gr_toggle_fullscreen()?"on":"off" ); |
| | //added 2000/06/19 Matthew Mueller - hack to fix "infinite toggle" problem |
| | //it seems to be that the screen mode change takes long enough that the key has already sent repeat codes, or that its unpress event gets dropped, etc. This is a somewhat ugly fix, but it works. |
| | generic_key_handler(KEY_PADENTER,0); |
| | key_flush(); |
| | //end addition -MM |
#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 |