Mercurial > hg > orthanc-stone
changeset 662:794278160a3f
fix for msvc 2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 May 2019 11:07:28 +0200 |
parents | 970949ff868a |
children | b8b2bb75fde1 |
files | Applications/Sdl/SdlWindow.cpp |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/Sdl/SdlWindow.cpp Wed May 15 09:03:40 2019 +0200 +++ b/Applications/Sdl/SdlWindow.cpp Wed May 15 11:07:28 2019 +0200 @@ -27,7 +27,7 @@ #include <Core/OrthancException.h> #ifdef WIN32 -#include <windows.h> // for SetProcessDpiAware +#include <windows.h> // for SetProcessDpiAware #endif // WIN32 @@ -59,7 +59,7 @@ } // TODO: probably required on MacOS X, too -#ifdef WIN32 +#if defined(WIN32) && (_WIN32_WINNT >= 0x0600) if (!allowDpiScaling) { // if we do NOT allow DPI scaling, it means an SDL pixel will be a real @@ -70,10 +70,10 @@ // THE FOLLOWING HAS BEEN COMMENTED OUT BECAUSE IT WILL CRASH UNDER // OLD WINDOWS VERSIONS // ADD THIS AT THE TOP TO ENABLE IT: - // - //#pragma comment(lib, "Shcore.lib") THIS IS ONLY REQUIRED FOR SetProcessDpiAwareness - //#include <windows.h> - //#include <ShellScalingAPI.h> THIS IS ONLY REQUIRED FOR SetProcessDpiAwareness + // + //#pragma comment(lib, "Shcore.lib") THIS IS ONLY REQUIRED FOR SetProcessDpiAwareness + //#include <windows.h> + //#include <ShellScalingAPI.h> THIS IS ONLY REQUIRED FOR SetProcessDpiAwareness //#include <comdef.h> THIS IS ONLY REQUIRED FOR SetProcessDpiAwareness // SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);