Ignore:
Timestamp:
May 28, 2001, 4:43:34 PM (24 years ago)
Author:
phaller
Message:

Fix for Ziff Davis Benchmarks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/gdi32.cpp

    r5813 r5817  
    1 /* $Id: gdi32.cpp,v 1.71 2001-05-28 09:17:54 phaller Exp $ */
     1/* $Id: gdi32.cpp,v 1.72 2001-05-28 14:43:34 phaller Exp $ */
    22
    33/*
     
    333333HDC WIN32API CreateDCA(LPCSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszOutput, const DEVMODEA *lpInitData)
    334334{
    335  HDC hdc;
     335    HDC hdc;
     336
     337    // 2001-05-28 PH
     338    // Ziff Davis Benchmarks come in here with "display".
     339    // Obviously, Windows does accept case-insensitive driver names,
     340    // whereas Open32 doesn't.
     341    if (*lpszDriver == 'd') // quick check
     342    {
     343        // then do a double-check and use the uppercase constant
     344        // instead
     345        if (stricmp(lpszDriver, "DISPLAY") == 0)
     346            lpszDriver = "DISPLAY";
     347    }
    336348
    337349    hdc = O32_CreateDC(lpszDriver, lpszDevice, lpszOutput, lpInitData);
     
    395407      devmode.dmReserved1        = arg4->dmReserved1;
    396408      devmode.dmReserved2        = arg4->dmReserved2;
    397       rc = O32_CreateDC(astring1,astring2,astring3,&devmode);
     409      rc = CreateDCA(astring1,astring2,astring3,&devmode);
    398410    }
    399411    else
    400       rc = O32_CreateDC(astring1,astring2,astring3, NULL);
     412      rc = CreateDCA(astring1,astring2,astring3, NULL);
    401413
    402414    FreeAsciiString(astring1);
Note: See TracChangeset for help on using the changeset viewer.