Difference for main/newmenu.c from version 1.12 to 1.13


version 1.12 version 1.13
Line 19
 
Line 19
  * Routines for menus.   * Routines for menus.
  *    *
  * $Log$   * $Log$
    * Revision 1.13  2000/10/28 10:02:48  donut
    * scale menu bevels too
    *
  * Revision 1.12  2000/10/28 09:31:08  donut   * Revision 1.12  2000/10/28 09:31:08  donut
  * OGL support for fullscreen toggle key while in menus   * OGL support for fullscreen toggle key while in menus
  *   *
Line 646
 
Line 649
  Gr_scanline_darkening_level = 2*7;   Gr_scanline_darkening_level = 2*7;
   
  gr_setcolor( BM_XRGB(0,0,0) );   gr_setcolor( BM_XRGB(0,0,0) );
  gr_urect( x2-5, y1+5, x2-5, y2-5 );  
  gr_urect( x2-4, y1+4, x2-4, y2-5 );   //scale the bevels to the res too.  All the gwidth/height stuff is needed so that the corners have the correct angles at odd resolutions like 320x400 where the ratios are different for x and y
  gr_urect( x2-3, y1+3, x2-3, y2-5 );   for (w=5*(GWIDTH/320.0);w>=0;w--)
  gr_urect( x2-2, y1+2, x2-2, y2-5 );   gr_urect( x2-w, y1+w*((GHEIGHT/200.0)/(GWIDTH/320.0)), x2-w, y2-(GHEIGHT/200.0) );//right edge
  gr_urect( x2-1, y1+1, x2-1, y2-5 );   for (h=5*(GHEIGHT/200.0);h>=0;h--)
  gr_urect( x2+0, y1+0, x2-0, y2-5 );   gr_urect( x1+h*((GWIDTH/320.0)/(GHEIGHT/200.0)), y2-h, x2, y2-h );//bottom edge
   
  gr_urect( x1+5, y2-5, x2, y2-5 );  
  gr_urect( x1+4, y2-4, x2, y2-4 );  
  gr_urect( x1+3, y2-3, x2, y2-3 );  
  gr_urect( x1+2, y2-2, x2, y2-2 );  
  gr_urect( x1+1, y2-1, x2, y2-1 );  
  gr_urect( x1+0, y2, x2, y2-0 );  
   
  Gr_scanline_darkening_level = GR_FADE_LEVELS;   Gr_scanline_darkening_level = GR_FADE_LEVELS;
 }  }

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