Difference for arch/win32/gr.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 226
 
Line 226
   
   
   
 int gr_set_mode(int mode)  int gr_set_mode(u_int32_t mode)
 {  {
         DDSURFACEDESC       ddsd;          DDSURFACEDESC       ddsd;
 //        DDSURFACEDESC       DDSDesc;  //        DDSURFACEDESC       DDSDesc;
 //        DDSCAPS             ddcaps;  //        DDSCAPS             ddcaps;
         HRESULT             ddrval;          HRESULT             ddrval;
  unsigned int w,h,r;   unsigned int w,h;
   
  switch(mode)   if (mode<=0)
  {  
  case SM_ORIGINAL:  
  return 0;   return 0;
  case 0:  
  w = 320; r = 320; h = 200;   w=SM_W(mode);
  break;   h=SM_H(mode);
         case SM_320x240U:  
                 w = 320; r = 320; h = 240;  
                 break;  
         case SM_320x400U:  
                 w = 320; r = 320; h = 400;  
                 break;  
  case SM_640x400V:  
  w = 640; r = 640; h = 400;  
  break;  
  case SM_640x480V:  
  w = 640; r = 640; h = 480;  
  break;  
  case SM_800x600V:  
  w = 800; r = 800; h = 600;  
  break;  
  case SM_1024x768V:  
  w = 1024; r = 1024; h = 768;  
  break;  
  default:  
                 Error("Unsupported video mode!\n");  
                 exit(0);  
  break;  
  }  
   
         if(lpDDSPrimary!=NULL)          if(lpDDSPrimary!=NULL)
         {          {

Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4