Changeset 8115 for trunk/src


Ignore:
Timestamp:
Mar 22, 2002, 2:49:54 PM (23 years ago)
Author:
sandervl
Message:

Do not use XFree driver unless fullscreen mode is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2DDRAW.CPP

    r7940 r8115  
    1 /* $Id: OS2DDRAW.CPP,v 1.33 2002-02-17 20:40:04 sandervl Exp $ */
     1/* $Id: OS2DDRAW.CPP,v 1.34 2002-03-22 13:49:54 sandervl Exp $ */
    22
    33/*
     
    225225    bScale = FALSE;
    226226
    227   rc = InitIO();
    228 
    229   if(rc)  // try to get IOPL for the thread
    230   {
    231     dprintf(("DDRAW: No IOPL"));
    232   }
    233   else
    234   {
    235     dprintf(("DDRAW: IOPL 3!"));
    236   }
    237 
    238 
    239         // Check to see if FS DDraw is enabled in ODIN.INI
    240         if (PROFILE_GetOdinIniBool(ODINDDRAW_SECTION, "Fullscreen", FALSE)) {
    241                 rc = LoadPMIService();
    242                 dprintf(("DDRAW: LoadPMIService() rc=0x%08X",rc));
     227  // Check to see if FS DDraw is enabled in ODIN.INI
     228  if (PROFILE_GetOdinIniBool(ODINDDRAW_SECTION, "Fullscreen", FALSE))
     229  {
     230      rc = InitIO();
     231
     232      if(rc)  // try to get IOPL for the thread
     233      {
     234          dprintf(("DDRAW: No IOPL"));
     235      }
     236      else
     237      {
     238          dprintf(("DDRAW: IOPL 3!"));
     239      }
     240
     241      rc = LoadPMIService();
     242      dprintf(("DDRAW: LoadPMIService() rc=0x%08X",rc));
    243243               
    244                 if (!rc) {
    245                         SetUpModeTable();
     244      if (!rc) {
     245          SetUpModeTable();
    246246                       
    247                         bUseFSDD = TRUE;
    248                         dprintf(("DDRAW: Fullscreen enabled",rc));
    249                 }       
    250         }       
     247          bUseFSDD = TRUE;
     248          dprintf(("DDRAW: Fullscreen enabled",rc));
     249      }
     250  }     
    251251}
    252252//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.