Skip to content

Commit

Permalink
Add a qt.conf file for Windows
Browse files Browse the repository at this point in the history
This file will specify that Scopy is DPI unaware. This means that Windows
will run Scopy as if it was running on a standard display instead of a High
DPI one. Scopy will still scale accordingly to the Windows display scale
setting but now it will work properly without making the plots slower

Signed-off-by: Daniel Guramulta <[email protected]>
  • Loading branch information
DanielGuramulta authored and adisuciu committed Feb 12, 2020
1 parent 6f4f493 commit 7207f94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,4 @@ if (NOT ENABLE_APPLICATION_BUNDLE)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/icon_small.svg DESTINATION share/icons/hicolor/apps/scalable RENAME scopy.svg)
endif()

configure_file(qt.conf.cmakein ${CMAKE_CURRENT_BINARY_DIR}/qt.conf @ONLY)
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ build_script:

- mkdir c:\%DEST_FOLDER%
- copy c:\%BUILD_FOLDER%\Scopy.exe c:\%DEST_FOLDER%\
- copy c:\%BUILD_FOLDER%\qt.conf c:\%DEST_FOLDER%\
- c:\msys64\%MINGW_VERSION%\bin\windeployqt.exe --dir c:\%DEST_FOLDER% --release --no-system-d3d-compiler --no-compiler-runtime --no-quick-import --opengl --printsupport c:\%BUILD_FOLDER%\Scopy.exe
- C:\msys64\usr\bin\bash -lc "cp -r /c/projects/scopy/resources/decoders /c/%DEST_FOLDER%/"

Expand Down
2 changes: 2 additions & 0 deletions qt.conf.cmakein
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Platforms]
WindowsArguments = dpiawareness=0

0 comments on commit 7207f94

Please sign in to comment.