DXGL r697 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r696
|
r697
|
r698
>
Date:
04:30, 12 March 2017
Author:
admin
Status:
new
Tags:
Comment:
Fix a regression that can cause a black screen in fullscreen mode.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -2042,18 +2042,24 @@
2043
2043
switch (dxglcfg.fullmode)
2044
2044
{
2045
2045
case 0: // Fullscreen
2046
- winstyle = GetWindowLongPtrA(newwnd, GWL_STYLE);
2046
+ /*winstyle = GetWindowLongPtrA(newwnd, GWL_STYLE);
2047
2047
winstyleex = GetWindowLongPtrA(newwnd, GWL_EXSTYLE);
2048
2048
SetWindowLongPtrA(newwnd, GWL_EXSTYLE, winstyleex & ~(WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE));
2049
2049
SetWindowLongPtrA(newwnd, GWL_STYLE, (winstyle | WS_POPUP) & ~(WS_CAPTION | WS_THICKFRAME | WS_BORDER));
2050
+ ShowWindow(newwnd, SW_MAXIMIZE);*/ //This seems to cause a black screen in some cases
2051
+ SetWindowLongPtrA(newwnd, GWL_EXSTYLE, WS_EX_APPWINDOW);
2052
+ SetWindowLongPtrA(newwnd, GWL_STYLE, WS_OVERLAPPED|WS_POPUP);
2050
2053
ShowWindow(newwnd, SW_MAXIMIZE);
2051
2054
break;
2052
2055
case 1: // Non-exclusive Fullscreen
2053
2056
case 5: // Windowed borderless scaled
2054
- winstyle = GetWindowLongPtrA(newwnd, GWL_STYLE);
2057
+ /*winstyle = GetWindowLongPtrA(newwnd, GWL_STYLE);
2055
2058
winstyleex = GetWindowLongPtrA(newwnd, GWL_EXSTYLE);
2056
2059
SetWindowLongPtrA(newwnd, GWL_EXSTYLE, winstyleex & ~(WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE));
2057
2060
SetWindowLongPtrA(newwnd, GWL_STYLE, winstyle & ~(WS_CAPTION | WS_THICKFRAME | WS_BORDER | WS_POPUP));
2061
+ ShowWindow(newwnd, SW_MAXIMIZE);*/ //This seems to cause a black screen in some cases
2062
+ SetWindowLongPtrA(newwnd, GWL_EXSTYLE, WS_EX_APPWINDOW);
2063
+ SetWindowLongPtrA(newwnd, GWL_STYLE, WS_OVERLAPPED);
2058
2064
ShowWindow(newwnd, SW_MAXIMIZE);
2059
2065
break;
2060
2066
case 2: // Windowed
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