File tree Expand file tree Collapse file tree 6 files changed +74
-0
lines changed Expand file tree Collapse file tree 6 files changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ target_sources(g_generals PRIVATE
69
69
)
70
70
71
71
if (WIN32 OR "${CMAKE_SYSTEM} " MATCHES "Windows" )
72
+ # VS2005 and later adds default manifest, we need to turn it off to prevent conflict with custom manifest
73
+ if (NOT IS_VS6_BUILD )
74
+ target_link_options (g_generals PRIVATE
75
+ "/MANIFEST:NO"
76
+ )
77
+ endif ()
78
+
72
79
target_sources (g_generals PRIVATE
73
80
RTS.RC
74
81
)
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ IDB_LOAD_SCREEN BITMAP DISCARDABLE "Install_Final.bmp"
65
65
#endif // English (U.S.) resources
66
66
/////////////////////////////////////////////////////////////////////////////
67
67
68
+ // Add manifest to specify that the app is DPI aware and prevent forced scaling by the system
69
+ 1 24 "app.manifest"
68
70
69
71
70
72
#ifndef APSTUDIO_INVOKED
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <assembly xmlns =" urn:schemas-microsoft-com:asm.v1" manifestVersion =" 1.0" xmlns : asmv3 =" urn:schemas-microsoft-com:asm.v3" >
3
+ <trustInfo xmlns =" urn:schemas-microsoft-com:asm.v3" >
4
+ <security >
5
+ <requestedPrivileges >
6
+ <requestedExecutionLevel level =' asInvoker' uiAccess =' false' />
7
+ </requestedPrivileges >
8
+ </security >
9
+ </trustInfo >
10
+ <dependency >
11
+ <dependentAssembly >
12
+ <assemblyIdentity
13
+ type =" win32"
14
+ name =" Microsoft.Windows.Common-Controls"
15
+ version =" 6.0.0.0"
16
+ processorArchitecture =" *"
17
+ publicKeyToken =" 6595b64144ccf1df"
18
+ language =" *"
19
+ />
20
+ </dependentAssembly >
21
+ </dependency >
22
+ <asmv3 : application >
23
+ <asmv3 : windowsSettings >
24
+ <dpiAware xmlns =" http://schemas.microsoft.com/SMI/2005/WindowsSettings" >true/pm</dpiAware >
25
+ <dpiAwareness xmlns =" http://schemas.microsoft.com/SMI/2016/WindowsSettings" >PerMonitorV2</dpiAwareness >
26
+ </asmv3 : windowsSettings >
27
+ </asmv3 : application >
28
+ </assembly >
Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ target_sources(z_generals PRIVATE
59
59
)
60
60
61
61
if (WIN32 OR "${CMAKE_SYSTEM} " MATCHES "Windows" )
62
+ # VS2005 and later adds default manifest, we need to turn it off to prevent conflict with custom manifest
63
+ if (NOT IS_VS6_BUILD )
64
+ target_link_options (z_generals PRIVATE
65
+ "/MANIFEST:NO"
66
+ )
67
+ endif ()
68
+
62
69
target_sources (z_generals PRIVATE
63
70
RTS.RC
64
71
)
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ IDI_ApplicationIcon ICON DISCARDABLE "GENERALS.ICO"
58
58
#endif // English (U.S.) resources
59
59
/////////////////////////////////////////////////////////////////////////////
60
60
61
+ // Add manifest to specify that the app is DPI aware and prevent forced scaling by the system
62
+ 1 24 "app.manifest"
61
63
62
64
63
65
#ifndef APSTUDIO_INVOKED
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <assembly xmlns =" urn:schemas-microsoft-com:asm.v1" manifestVersion =" 1.0" xmlns : asmv3 =" urn:schemas-microsoft-com:asm.v3" >
3
+ <trustInfo xmlns =" urn:schemas-microsoft-com:asm.v3" >
4
+ <security >
5
+ <requestedPrivileges >
6
+ <requestedExecutionLevel level =' asInvoker' uiAccess =' false' />
7
+ </requestedPrivileges >
8
+ </security >
9
+ </trustInfo >
10
+ <dependency >
11
+ <dependentAssembly >
12
+ <assemblyIdentity
13
+ type =" win32"
14
+ name =" Microsoft.Windows.Common-Controls"
15
+ version =" 6.0.0.0"
16
+ processorArchitecture =" *"
17
+ publicKeyToken =" 6595b64144ccf1df"
18
+ language =" *"
19
+ />
20
+ </dependentAssembly >
21
+ </dependency >
22
+ <asmv3 : application >
23
+ <asmv3 : windowsSettings >
24
+ <dpiAware xmlns =" http://schemas.microsoft.com/SMI/2005/WindowsSettings" >true/pm</dpiAware >
25
+ <dpiAwareness xmlns =" http://schemas.microsoft.com/SMI/2016/WindowsSettings" >PerMonitorV2</dpiAwareness >
26
+ </asmv3 : windowsSettings >
27
+ </asmv3 : application >
28
+ </assembly >
You can’t perform that action at this time.
0 commit comments