DXGL r750 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r749
|
r750
|
r751
>
Date:
01:37, 8 October 2017
Author:
admin
Status:
new
Tags:
Comment:
Fix interactive graphics tests.
Fix interactive tests crashing on close.
Allow starting a graphics test by double-clicking the item in the list.
Modified paths:
/dxgltest/dxgltest.cpp
(modified) (
history
)
/dxgltest/tests.cpp
(modified) (
history
)
Diff
[
purge
]
Index: dxgltest/dxgltest.cpp
—
—
@@ -345,6 +345,19 @@
346
346
SendDlgItemMessage(hWnd,IDC_FRAMERATE,WM_SETTEXT,0,(LPARAM)frameratestring);
347
347
}
348
348
}
349
+ else if (HIWORD(wParam) == LBN_DBLCLK)
350
+ {
351
+ if (SendDlgItemMessage(hWnd, IDC_RESIZABLE, BM_GETCHECK, 0, 0)) resizable = true;
352
+ else resizable = false;
353
+ if (buffer < minbuffer) buffer = minbuffer;
354
+ if (buffer > maxbuffer) buffer = maxbuffer;
355
+ i = SendDlgItemMessage(hWnd, IDC_VIDMODES, LB_GETCURSEL, 0, 0);
356
+ SendDlgItemMessage(hWnd, IDC_VIDMODES, LB_GETTEXT, i, (LPARAM)tmpstring);
357
+ TranslateResolutionString(tmpstring, width, height, bpp, refresh);
358
+ RunDXGLTest(currenttest, width, height, bpp, refresh, buffer, api,
359
+ filter, msaa, framerate, fullscreen, resizable, Tests[currenttest].is3d);
360
+ break;
361
+ }
349
362
break;
350
363
case IDC_FRAMERATE:
351
364
if(HIWORD(wParam) == EN_CHANGE)
Index: dxgltest/tests.cpp
—
—
@@ -2173,7 +2173,7 @@
2174
2174
DDSCAPS2 caps;
2175
2175
DDSURFACEDESC2 ddsd;
2176
2176
DDPIXELFORMAT ddpfz;
2177
- testnum = 2;
2177
+ testnum = 14;
2178
2178
ddinterface = new MultiDirectDraw(7, &error, NULL);
2179
2179
hDisplay = GetDlgItem(hWnd, IDC_DISPLAY);
2180
2180
::hWnd = hDisplay;
—
—
@@ -2579,6 +2579,7 @@
2580
2580
}
2581
2581
break;
2582
2582
case WM_CLOSE:
2583
+ StopTimer();
2583
2584
if (d3d7dev)
2584
2585
{
2585
2586
d3d7dev->Release();
—
—
@@ -2662,7 +2663,7 @@
2663
2664
DDSCAPS2 caps;
2664
2665
DDSURFACEDESC2 ddsd;
2665
2666
DDPIXELFORMAT ddpfz;
2666
- testnum = 3;
2667
+ testnum = 15;
2667
2668
ddinterface = new MultiDirectDraw(7, &error, NULL);
2668
2669
hDisplay = GetDlgItem(hWnd, IDC_DISPLAY);
2669
2670
::hWnd = hDisplay;
—
—
@@ -3099,6 +3100,7 @@
3100
3101
}
3101
3102
break;
3102
3103
case WM_CLOSE:
3104
+ StopTimer();
3103
3105
if (d3d7dev)
3104
3106
{
3105
3107
d3d7dev->Release();
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