DXGL r779 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r778
|
r779
|
r780
>
Date:
21:17, 15 December 2017
Author:
admin
Status:
new
Tags:
Comment:
Add VSync control.
Fix a buffer overrun in DXGL Config.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
/dxglcfg/dxglcfg.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -1611,6 +1611,8 @@
1612
1612
*/
1613
1613
void glRenderer__SetSwap(glRenderer *This, int swap)
1614
1614
{
1615
+ if (dxglcfg.vsync == 1) swap = 0;
1616
+ else if (dxglcfg.vsync == 2) swap = 1;
1615
1617
if(swap != This->oldswap)
1616
1618
{
1617
1619
This->ext->wglSwapIntervalEXT(swap);
—
—
@@ -2720,6 +2722,7 @@
2721
2723
glFinish();
2722
2724
DXGLTimer_Init(&This->timer);
2723
2725
DXGLTimer_Calibrate(&This->timer, height, frequency);
2726
+ if (dxglcfg.vsync == 1) This->oldswap = 1;
2724
2727
glRenderer__SetSwap(This,0);
2725
2728
glUtil_SetViewport(This->util,0,0,width,height);
2726
2729
glViewport(0,0,width,height);
Index: dxglcfg/dxglcfg.cpp
—
—
@@ -93,7 +93,7 @@
94
94
TCHAR strdefault[] = _T("(global default)");
95
95
TCHAR strdefaultshort[] = _T("(default)");
96
96
HWND hTab;
97
-HWND hTabs[6];
97
+HWND hTabs[8];
98
98
static int tabopen;
99
99
100
100
static const TCHAR *colormodes[32] = {
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