DXGL r751 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r750
|
r751
|
r752
>
Date:
02:45, 8 October 2017
Author:
admin
Status:
new
Tags:
Comment:
Prepare DXGL Test dialog for merging with new DXGL Config.
Add ESC key to interactive tests and main DXGLTest dialog.
Remove some unnecessary system information from DXGLTest info pane.
Modified paths:
/dxgltest/Resource.h
(modified) (
history
)
/dxgltest/dxgltest.cpp
(modified) (
history
)
/dxgltest/dxgltest.rc
(modified) (
history
)
/dxgltest/tests.cpp
(modified) (
history
)
Diff
[
purge
]
Index: dxgltest/Resource.h
—
—
@@ -76,15 +76,7 @@
77
77
#define IDC_FSAALABEL 1029
78
78
#define IDC_TEST 1031
79
79
#define IDC_DDVER 1032
80
-#define IDC_DDEXVER 1041
81
-#define IDC_D3DVER 1042
82
-#define IDC_D3D7VER 1043
83
-#define IDC_D3DREFVER 1044
84
-#define IDC_D3DRAMPVER 1045
85
-#define IDC_D3DRMVER 1046
86
-#define IDC_D3DXOFVER 1047
87
80
#define IDC_FILLSTIPPLELLLABEL 1047
88
-#define IDC_D3DPMESHVER 1048
89
81
#define IDC_FILLSTIPPLETYPE 1052
90
82
#define IDC_FILLSTIPPLEFILE 1053
91
83
#define IDC_FILLSTIPPLEBROWSE 1054
Index: dxgltest/dxgltest.cpp
—
—
@@ -135,26 +135,10 @@
136
136
137
137
const TCHAR *dllnames[] = {
138
138
_T("ddraw.dll"),
139
- _T("ddrawex.dll"),
140
- _T("d3dim.dll"),
141
- _T("d3dim700.dll"),
142
- _T("d3dref.dll"),
143
- _T("d3dramp.dll"),
144
- _T("d3drm.dll"),
145
- _T("d3dxof.dll"),
146
- _T("d3dpmesh.dll")
147
139
};
148
140
149
141
int dllboxes[] = {
150
142
IDC_DDVER,
151
- IDC_DDEXVER,
152
- IDC_D3DVER,
153
- IDC_D3D7VER,
154
- IDC_D3DREFVER,
155
- IDC_D3DRAMPVER,
156
- IDC_D3DRMVER,
157
- IDC_D3DXOFVER,
158
- IDC_D3DPMESHVER
159
143
};
160
144
161
145
INT_PTR CALLBACK SysTabCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
—
—
@@ -176,7 +160,7 @@
177
161
SetWindowText(GetDlgItem(hWnd,dllboxes[0]),ver.c_str());
178
162
if(!IsDXGLDDraw)
179
163
{
180
- for(i = 1; i < 9; i++)
164
+ for(i = 1; i < 1; i++)
181
165
{
182
166
GetFileVersion(ver,dllnames[i]);
183
167
SetWindowText(GetDlgItem(hWnd,dllboxes[i]),ver.c_str());
—
—
@@ -184,7 +168,7 @@
185
169
}
186
170
else
187
171
{
188
- for(i = 1; i < 9; i++)
172
+ for(i = 1; i < 1; i++)
189
173
SetWindowText(GetDlgItem(hWnd,dllboxes[i]),_T("N/A"));
190
174
}
191
175
break;
—
—
@@ -553,6 +537,7 @@
554
538
switch(LOWORD(wParam))
555
539
{
556
540
case IDOK:
541
+ case IDCANCEL:
557
542
EndDialog(hWnd,IDOK);
558
543
break;
559
544
}
Index: dxgltest/dxgltest.rc
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: dxgltest/tests.cpp
—
—
@@ -2574,6 +2574,9 @@
2575
2575
d3d7dev->SetRenderState(D3DRENDERSTATE_FOGDENSITY, *((LPDWORD)(&f)));
2576
2576
}
2577
2577
break;
2578
+ case IDCANCEL:
2579
+ SendMessage(hWnd, WM_CLOSE, 0, 0);
2580
+ break;
2578
2581
default:
2579
2582
return FALSE;
2580
2583
}
—
—
@@ -3095,6 +3098,9 @@
3096
3099
d3d7dev->SetLight(vertexshaderstate.currentlight, &lights[vertexshaderstate.currentlight]);
3097
3100
}
3098
3101
break;
3102
+ case IDCANCEL:
3103
+ SendMessage(hWnd, WM_CLOSE, 0, 0);
3104
+ break;
3099
3105
default:
3100
3106
return FALSE;
3101
3107
}
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