DXGL r738 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r737‎ | r738 | r739 >
Date:03:40, 3 September 2017
Author:admin
Status:new
Tags:
Comment:
Re-enable 15 bit color in Debug builds.
For compatibility purposes, this does not apply to Release builds, and will be superseded in the updated config system.
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -373,7 +373,8 @@
374374 count2++;
375375 }
376376 break;
377 -/* case 16: //FIXME: Temporarily removed for compatibility.
 377+#ifdef _DEBUG //FIXME: Temporarily removed in release builds for compatibility.
 378+ case 16:
378379 compmode = (*array)[i];
379380 compmode.dmBitsPerPel = 15;
380381 if(!ScanModeList(*array,compmode,*count))
@@ -381,7 +382,8 @@
382383 array2[count2] = compmode;
383384 count2++;
384385 }
385 - break;*/
 386+ break;
 387+#endif
386388 case 24:
387389 compmode = (*array)[i];
388390 compmode.dmBitsPerPel = 32;
@@ -407,13 +409,15 @@
408410 count2++;
409411 }
410412 compmode = (*array)[i];
411 -/* compmode.dmBitsPerPel = 15; // FIXME: Temporarily removed for compatibility.
 413+#ifdef _DEBUG //FIXME: Temporarily removed in release builds for compatibility.
 414+ compmode.dmBitsPerPel = 15;
412415 if(!ScanModeList(*array,compmode,*count))
413416 {
414417 array2[count2] = compmode;
415418 count2++;
416419 }
417 - compmode = (*array)[i];*/
 420+ compmode = (*array)[i];
 421+#endif
418422 compmode.dmBitsPerPel = 8;
419423 if(!ScanModeList(*array,compmode,*count))
420424 {