DXGL r738 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
374
374
count2++;
375
375
}
376
376
break;
377
-/* case 16: //FIXME: Temporarily removed for compatibility.
377
+#ifdef _DEBUG //FIXME: Temporarily removed in release builds for compatibility.
378
+ case 16:
378
379
compmode = (*array)[i];
379
380
compmode.dmBitsPerPel = 15;
380
381
if(!ScanModeList(*array,compmode,*count))
—
—
@@ -381,7 +382,8 @@
382
383
array2[count2] = compmode;
383
384
count2++;
384
385
}
385
- break;*/
386
+ break;
387
+#endif
386
388
case 24:
387
389
compmode = (*array)[i];
388
390
compmode.dmBitsPerPel = 32;
—
—
@@ -407,13 +409,15 @@
408
410
count2++;
409
411
}
410
412
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;
412
415
if(!ScanModeList(*array,compmode,*count))
413
416
{
414
417
array2[count2] = compmode;
415
418
count2++;
416
419
}
417
- compmode = (*array)[i];*/
420
+ compmode = (*array)[i];
421
+#endif
418
422
compmode.dmBitsPerPel = 8;
419
423
if(!ScanModeList(*array,compmode,*count))
420
424
{
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version