DXGL r788 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r787
|
r788
|
r789
>
Date:
02:09, 2 March 2018
Author:
admin
Status:
new
Tags:
Comment:
Anchor top left of window when window position is set to remembered.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -2099,7 +2099,7 @@
2100
2100
{
2101
2101
RECT r;
2102
2102
ZeroMemory(&r, sizeof(RECT));
2103
- BOOL ret = AdjustWindowRectEx(lpRect, dwStyle, bMenu, dwExStyle);
2103
+ BOOL ret = AdjustWindowRectEx(&r, dwStyle, bMenu, dwExStyle);
2104
2104
if (!ret) return ret;
2105
2105
else
2106
2106
{
—
—
@@ -2177,8 +2177,8 @@
2178
2178
wndrect.left = (screenx / 2) - (width / 2);
2179
2179
wndrect.top = (screeny / 2) - (height / 2);
2180
2180
}
2181
- wndrect.right = width + (screenx / 2) - (width / 2);
2182
- wndrect.bottom = height + (screeny / 2) - (height / 2);
2181
+ wndrect.right = wndrect.left + width;
2182
+ wndrect.bottom = wndrect.top + height;
2183
2183
dxglcfg.WindowX = wndrect.left;
2184
2184
dxglcfg.WindowY = wndrect.top;
2185
2185
dxglcfg.WindowWidth = wndrect.right - wndrect.left;
—
—
@@ -2210,8 +2210,8 @@
2211
2211
wndrect.left = (screenx / 2) - (width / 2);
2212
2212
wndrect.top = (screeny / 2) - (height / 2);
2213
2213
}
2214
- wndrect.right = width + (screenx / 2) - (width / 2);
2215
- wndrect.bottom = height + (screeny / 2) - (height / 2);
2214
+ wndrect.right = wndrect.left + width;
2215
+ wndrect.bottom = wndrect.top + height;
2216
2216
dxglcfg.WindowX = wndrect.left;
2217
2217
dxglcfg.WindowY = wndrect.top;
2218
2218
dxglcfg.WindowWidth = wndrect.right - wndrect.left;
—
—
@@ -2237,8 +2237,8 @@
2238
2238
wndrect.left = (screenx / 2) - (width / 2);
2239
2239
wndrect.top = (screeny / 2) - (height / 2);
2240
2240
}
2241
- wndrect.right = width + (screenx / 2) - (width / 2);
2242
- wndrect.bottom = height + (screeny / 2) - (height / 2);
2241
+ wndrect.right = wndrect.left + width;
2242
+ wndrect.bottom = wndrect.top + height;
2243
2243
dxglcfg.WindowX = wndrect.left;
2244
2244
dxglcfg.WindowY = wndrect.top;
2245
2245
dxglcfg.WindowWidth = wndrect.right - wndrect.left;
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