- Timestamp:
- May 28, 2001, 4:43:34 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r5813 r5817 1 /* $Id: gdi32.cpp,v 1.7 1 2001-05-28 09:17:54 phaller Exp $ */1 /* $Id: gdi32.cpp,v 1.72 2001-05-28 14:43:34 phaller Exp $ */ 2 2 3 3 /* … … 333 333 HDC WIN32API CreateDCA(LPCSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszOutput, const DEVMODEA *lpInitData) 334 334 { 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 } 336 348 337 349 hdc = O32_CreateDC(lpszDriver, lpszDevice, lpszOutput, lpInitData); … … 395 407 devmode.dmReserved1 = arg4->dmReserved1; 396 408 devmode.dmReserved2 = arg4->dmReserved2; 397 rc = O32_CreateDC(astring1,astring2,astring3,&devmode);409 rc = CreateDCA(astring1,astring2,astring3,&devmode); 398 410 } 399 411 else 400 rc = O32_CreateDC(astring1,astring2,astring3, NULL);412 rc = CreateDCA(astring1,astring2,astring3, NULL); 401 413 402 414 FreeAsciiString(astring1);
Note:
See TracChangeset
for help on using the changeset viewer.