Difference for arch/win32/gr.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 19
 
Line 19
 //added 10/05/98 by Matt Mueller - make fullscreen mode optional  //added 10/05/98 by Matt Mueller - make fullscreen mode optional
 #include "args.h"  #include "args.h"
   
 //added 02/20/99 by adb - put descent in a window, sort of. Needed for debugging  //removed 07/11/99 by adb - now option
 //(needs a 256 color mode to be useful)  ////added 02/20/99 by adb - put descent in a window, sort of. Needed for debugging
 #ifndef NDEBUG  ////(needs a 256 color mode to be useful)
 #define DD_NOT_EXCL  //#ifndef NDEBUG
 #endif  //#define DD_NOT_EXCL
   //#endif
   //end remove - adb
   
 char *backbuffer = NULL;  char *backbuffer = NULL;
   
Line 269
 
Line 271
   
         if (backbuffer) free(backbuffer);          if (backbuffer) free(backbuffer);
   
 #ifndef DD_NOT_EXCL  
    //changed 07/11/99 by adb - nonfullscreen mode now option
    if (!FindArg("-semiwin"))
    {
         ddrval=IDirectDraw_SetDisplayMode(lpDD,w,h,8);          ddrval=IDirectDraw_SetDisplayMode(lpDD,w,h,8);
   
         if (ddrval!=DD_OK)          if (ddrval!=DD_OK)
Line 277
 
Line 282
           fprintf(stderr, "Hmmm... I had a problem changing screen modes... is %ix%ix8 supported? If so, try again... :-( %s\n",w,h, DDerror(ddrval));            fprintf(stderr, "Hmmm... I had a problem changing screen modes... is %ix%ix8 supported? If so, try again... :-( %s\n",w,h, DDerror(ddrval));
           return -3; // This is **not** good...            return -3; // This is **not** good...
         }          }
 #endif           }
    //end changes - adb
        ddsd.dwSize=sizeof(ddsd);         ddsd.dwSize=sizeof(ddsd);
        ddsd.dwFlags=DDSD_CAPS /*| DDSD_BACKBUFFERCOUNT*/;         ddsd.dwFlags=DDSD_CAPS /*| DDSD_BACKBUFFERCOUNT*/;
        ddsd.ddsCaps.dwCaps=DDSCAPS_PRIMARYSURFACE /*| DDSCAPS_FLIP | DDSCAPS_COMPLEX*/;         ddsd.ddsCaps.dwCaps=DDSCAPS_PRIMARYSURFACE /*| DDSCAPS_FLIP | DDSCAPS_COMPLEX*/;
Line 361
 
Line 367
 {  {
  IDirectDrawPalette_GetEntries(lpDDPal,0,0,256,rgpe);   IDirectDrawPalette_GetEntries(lpDDPal,0,0,256,rgpe);
 }  }
   
   //added 07/11/99 by adb for d3d
   void Win32_MakePalVisible(void)
   {
   }
   //end additions - adb
   
 void gr_close(void);  void gr_close(void);
   

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2