Make Aseprite a DPI-aware application (fix #1041)

This commit is contained in:
David Capello 2016-04-18 13:27:36 -03:00
parent 6b0e23fa8f
commit 8775604e56
4 changed files with 20 additions and 3 deletions

View File

@ -4,7 +4,14 @@
# Parts of this file come from the Allegro 4.4 CMakeLists.txt
# CMake setup
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
if(WIN32)
# We need 3.4 to use manifests in the source files list for the main
# application target.
cmake_minimum_required(VERSION 3.4)
else()
cmake_minimum_required(VERSION 2.6)
endif()
enable_testing()
if(COMMAND cmake_policy)

View File

@ -43,7 +43,7 @@ On Windows you can use programs like
# Dependencies
Aseprite uses the latest version of [CMake](http://www.cmake.org/)
(3.0 or greater) as its build system. Also we use
(3.4 or greater) as its build system. Also we use
[Ninja](https://ninja-build.org) build files regularly instead of
Visual Studio or Xcode projects. Finally, you will need `awk` utility
to compile the embedded (non-shared version of) libpng library (on

View File

@ -142,7 +142,9 @@ add_custom_target(copy_data DEPENDS ${out_data_files})
# Aseprite application
if(WIN32)
set(win32_resources main/resources_win32.rc)
set(win32_resources
main/resources_win32.rc
main/settings.manifest)
endif()
if(UNIX AND NOT APPLE AND USE_ALLEG4_BACKEND)

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>True/PM</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>