File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ drivers.
13
13
* For Visual Studio 2022, MSBuild ` v142 ` must be used due to a compiler bug; See [ #2003 ] ( https://github.com/xenia-project/xenia/issues/2003 ) .
14
14
* [ Python 3.6+] ( https://www.python.org/downloads/ )
15
15
* Ensure Python is in PATH.
16
- * Windows 10 SDK version 10.0.19041 .0 (for Visual Studio 2019, this or any newer version)
16
+ * Windows 11 SDK version 10.0.22000 .0 (for Visual Studio 2019, this or any newer version)
17
17
18
18
```
19
19
git clone https://github.com/xenia-project/xenia.git
Original file line number Diff line number Diff line change @@ -225,8 +225,9 @@ workspace("xenia")
225
225
platforms ({" Windows" })
226
226
-- 10.0.15063.0: ID3D12GraphicsCommandList1::SetSamplePositions.
227
227
-- 10.0.19041.0: D3D12_HEAP_FLAG_CREATE_NOT_ZEROED.
228
+ -- 10.0.22000.0: DWMWA_WINDOW_CORNER_PREFERENCE.
228
229
filter (" action:vs2017" )
229
- systemversion (" 10.0.19041 .0" )
230
+ systemversion (" 10.0.22000 .0" )
230
231
filter (" action:vs2019" )
231
232
systemversion (" 10.0" )
232
233
filter ({})
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ project("xenia-ui")
21
21
22
22
filter (" platforms:Windows" )
23
23
links ({
24
- " DXGI" ,
24
+ " dwmapi" ,
25
+ " dxgi" ,
25
26
})
Original file line number Diff line number Diff line change 23
23
#include " xenia/ui/virtual_key.h"
24
24
#include " xenia/ui/windowed_app_context_win.h"
25
25
26
- // For per-monitor DPI awareness v1.
27
26
#include < ShellScalingApi.h>
27
+ #include < dwmapi.h>
28
28
29
29
namespace xe {
30
30
namespace ui {
@@ -182,6 +182,14 @@ bool Win32Window::OpenImpl() {
182
182
}
183
183
}
184
184
185
+ // Disable rounded corners starting with Windows 11 (or silently receive and
186
+ // ignore E_INVALIDARG on Windows versions before 10.0.22000.0), primarily to
187
+ // preserve all pixels of the guest output.
188
+ DWM_WINDOW_CORNER_PREFERENCE window_corner_preference = DWMWCP_DONOTROUND;
189
+ DwmSetWindowAttribute (hwnd_, DWMWA_WINDOW_CORNER_PREFERENCE,
190
+ &window_corner_preference,
191
+ sizeof (window_corner_preference));
192
+
185
193
// Disable flicks.
186
194
ATOM atom = GlobalAddAtomW (L" MicrosoftTabletPenServiceProperty" );
187
195
const DWORD_PTR dwHwndTabletProperty =
Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ class BuildShadersCommand(Command):
920
920
print ('ERROR: could not find 32-bit Program Files' )
921
921
return 1
922
922
windows_sdk_bin_path = os .path .join (
923
- program_files_path , 'Windows Kits/10/bin/10.0.19041 .0/x64' )
923
+ program_files_path , 'Windows Kits/10/bin/10.0.22000 .0/x64' )
924
924
if not os .path .exists (windows_sdk_bin_path ):
925
925
print ('ERROR: could not find Windows 10 SDK binaries' )
926
926
return 1
You can’t perform that action at this time.
0 commit comments