DXGL r889 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r888
|
r889
|
r890
>
Date:
01:13, 7 January 2019
Author:
admin
Status:
new
Tags:
Comment:
Hide Software D3D checkbox in DXGL Test if ddraw.dll is DXGL.
Modified paths:
/dxglcfg/dxgltest.cpp
(modified) (
history
)
Diff
[
purge
]
Index: dxglcfg/dxgltest.cpp
—
—
@@ -1,5 +1,5 @@
2
2
// DXGL
3
-// Copyright (C) 2011-2017 William Feely
3
+// Copyright (C) 2011-2019 William Feely
4
4
5
5
// This library is free software; you can redistribute it and/or
6
6
// modify it under the terms of the GNU Lesser General Public
—
—
@@ -268,6 +268,7 @@
269
269
double f;
270
270
LPDIRECTDRAW lpdd;
271
271
HRESULT error;
272
+ HMODULE hddraw;
272
273
int width,height,bpp,refresh;
273
274
switch(Msg)
274
275
{
—
—
@@ -283,6 +284,11 @@
284
285
IDirectDraw_Release(lpdd);
285
286
}
286
287
SendDlgItemMessage(hWnd,IDC_VIDMODES,LB_SETCURSEL,modenum,0);
288
+ hddraw = GetModuleHandle(_T("ddraw.dll"));
289
+ if (hddraw)
290
+ {
291
+ if (GetProcAddress(hddraw, "IsDXGLDDraw")) DestroyWindow(GetDlgItem(hWnd, IDC_SOFTD3D));
292
+ }
287
293
break;
288
294
case WM_COMMAND:
289
295
switch(LOWORD(wParam))
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