DXGL r787 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r786
|
r787
|
r788
>
Date:
23:38, 1 March 2018
Author:
admin
Status:
new
Tags:
Comment:
Remember window size after changing display mode in forced-window mode.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -2179,6 +2179,10 @@
2180
2180
}
2181
2181
wndrect.right = width + (screenx / 2) - (width / 2);
2182
2182
wndrect.bottom = height + (screeny / 2) - (height / 2);
2183
+ dxglcfg.WindowX = wndrect.left;
2184
+ dxglcfg.WindowY = wndrect.top;
2185
+ dxglcfg.WindowWidth = wndrect.right - wndrect.left;
2186
+ dxglcfg.WindowHeight = wndrect.bottom - wndrect.top;
2183
2187
AdjustWindowRectEx(&wndrect, (winstyle | WS_OVERLAPPEDWINDOW) & ~(WS_THICKFRAME | WS_MAXIMIZEBOX), FALSE,
2184
2188
(winstyleex | WS_EX_APPWINDOW));
2185
2189
SetWindowPos(newwnd, 0, wndrect.left, wndrect.top, wndrect.right - wndrect.left,
—
—
@@ -2208,6 +2212,10 @@
2209
2213
}
2210
2214
wndrect.right = width + (screenx / 2) - (width / 2);
2211
2215
wndrect.bottom = height + (screeny / 2) - (height / 2);
2216
+ dxglcfg.WindowX = wndrect.left;
2217
+ dxglcfg.WindowY = wndrect.top;
2218
+ dxglcfg.WindowWidth = wndrect.right - wndrect.left;
2219
+ dxglcfg.WindowHeight = wndrect.bottom - wndrect.top;
2212
2220
AdjustWindowRectEx(&wndrect, winstyle | WS_OVERLAPPEDWINDOW, FALSE, (winstyleex | WS_EX_APPWINDOW));
2213
2221
SetWindowPos(newwnd, 0, wndrect.left, wndrect.top, wndrect.right - wndrect.left,
2214
2222
wndrect.bottom - wndrect.top, SWP_ASYNCWINDOWPOS | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
—
—
@@ -2231,6 +2239,10 @@
2232
2240
}
2233
2241
wndrect.right = width + (screenx / 2) - (width / 2);
2234
2242
wndrect.bottom = height + (screeny / 2) - (height / 2);
2243
+ dxglcfg.WindowX = wndrect.left;
2244
+ dxglcfg.WindowY = wndrect.top;
2245
+ dxglcfg.WindowWidth = wndrect.right - wndrect.left;
2246
+ dxglcfg.WindowHeight = wndrect.bottom - wndrect.top;
2235
2247
SetWindowPos(newwnd, 0, wndrect.left, wndrect.top, wndrect.right - wndrect.left,
2236
2248
wndrect.bottom - wndrect.top, SWP_ASYNCWINDOWPOS | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
2237
2249
SaveWindowSettings(&dxglcfg);
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