DXGL r502 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r501
|
r502
|
r503
>
Date:
13:21, 30 August 2014
Author:
admin
Status:
new
Tags:
Comment:
Fix GDI color depth of surfaces.
Don't delete DWM8and16BitMitigation AppCompat flag if "Change display color depth" is on.
Modified paths:
/cfgmgr/cfgmgr.c
(modified) (
history
)
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
Diff
[
purge
]
Index: cfgmgr/cfgmgr.c
—
—
@@ -647,7 +647,7 @@
648
648
if (hUser32) FreeLibrary(hUser32);
649
649
}
650
650
}
651
- DelCompatFlag(_T("DWM8And16BitMitigation"), initial);
651
+ if(!cfg->colormode) DelCompatFlag(_T("DWM8And16BitMitigation"), initial);
652
652
}
653
653
void GetGlobalConfig(DXGLCFG *cfg, BOOL initial)
654
654
{
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -193,7 +193,7 @@
194
194
bitmapinfo->bmiHeader.biClrImportant = 0;
195
195
bitmapinfo->bmiHeader.biClrUsed = 0;
196
196
bitmapinfo->bmiHeader.biCompression = BI_RGB;
197
- bitmapinfo->bmiHeader.biBitCount = (WORD)ddInterface->GetBPPMultipleOf8();
197
+ bitmapinfo->bmiHeader.biBitCount = 0;
198
198
}
199
199
surfacetype=2;
200
200
bitmapinfo->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
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