Avoid DPI scaling on Windows
Causes ugly blurring. The window can be resized manually if it's too small.
This commit is contained in:
parent
530dab7bab
commit
c2bc6c5ec2
2 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,7 @@ project(CSE2 LANGUAGES C CXX)
|
||||||
|
|
||||||
add_executable(CSE2 WIN32
|
add_executable(CSE2 WIN32
|
||||||
"${ASSETS_DIRECTORY}/resources/CSE2.rc"
|
"${ASSETS_DIRECTORY}/resources/CSE2.rc"
|
||||||
|
"${ASSETS_DIRECTORY}/resources/CSE2.manifest"
|
||||||
"src/ArmsItem.cpp"
|
"src/ArmsItem.cpp"
|
||||||
"src/ArmsItem.h"
|
"src/ArmsItem.h"
|
||||||
"src/Back.cpp"
|
"src/Back.cpp"
|
||||||
|
|
9
assets/resources/CSE2.manifest
Normal file
9
assets/resources/CSE2.manifest
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||||
|
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<windowsSettings>
|
||||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
|
||||||
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness>
|
||||||
|
</windowsSettings>
|
||||||
|
</application>
|
||||||
|
</assembly>
|
Loading…
Add table
Reference in a new issue