Difference for include/gr.h from version 1.13 to 1.14


version 1.13 version 1.14
Line 19
 
Line 19
  * Definitions for graphics lib.   * Definitions for graphics lib.
  *   *
  * $Log$   * $Log$
    * Revision 1.14  2000/10/28 09:31:08  donut
    * OGL support for fullscreen toggle key while in menus
    *
  * Revision 1.13  1999/12/15 06:07:20  donut   * Revision 1.13  1999/12/15 06:07:20  donut
  * added font->ft_aw field (average width) since ft_w is usually too large on proportional fonts   * added font->ft_aw field (average width) since ft_w is usually too large on proportional fonts
  *   *
Line 743
 
Line 746
   
 #endif //!_GR_H  #endif //!_GR_H
   
 //currently SDL is the only thing that supports toggling fullscreen.  otherwise add other checks to the #if -MPM  //currently SDL and OGL are the only things that supports toggling fullscreen.  otherwise add other checks to the #if -MPM
 #if (defined(SDL_VIDEO) || defined(OGL))  #if (defined(SDL_VIDEO) || defined(OGL))
 #define GR_SUPPORTS_FULLSCREEN_TOGGLE  #define GR_SUPPORTS_FULLSCREEN_TOGGLE
 int gr_check_fullscreen(void);//must return 0 if windowed, 1 if fullscreen  int gr_check_fullscreen(void);//must return 0 if windowed, 1 if fullscreen
 int gr_toggle_fullscreen(void);//returns state after toggling (ie, same as if you had called check_fullscreen immediatly after)  int gr_toggle_fullscreen(void);//returns state after toggling (ie, same as if you had called check_fullscreen immediatly after)
 #endif  #endif
   
   //currently only OGL can toggle in the menus, because its screen data is not used (and stays in the same place).  whereas software modes, toggling fullscreen would very likely make the data buffer point to a different location, and all the subbitmaps of it would have invalid addresses in them.
   #ifdef OGL
   #define GR_SUPPORTS_FULLSCREEN_MENU_TOGGLE
   #endif
   int gr_toggle_fullscreen_menu(void);//returns state after toggling (ie, same as if you had called check_fullscreen immediatly after)
   
   //make this a define, since its used in several places
   #define KEYS_GR_TOGGLE_FULLSCREEN KEY_CTRLED+KEY_SHIFTED+KEY_PADENTER: case KEY_ALTED+KEY_CTRLED+KEY_PADENTER: case KEY_ALTED+KEY_SHIFTED+KEY_PADENTER

Legend:
line(s) removed in v.1.13 
line(s) changed
 line(s) added in v.1.14