Revision: 7510 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7510 Author: zmatsuo Date: 2019-03-25 22:53:31 +0900 (Mon, 25 Mar 2019) Log Message: ----------- ENABLE_DPIAWARENESS オプションを追加した Modified Paths: -------------- trunk/CMakeLists.txt trunk/teraterm/teraterm/CMakeLists.txt trunk/teraterm/teraterm/teraterm.cpp -------------- next part -------------- Modified: trunk/CMakeLists.txt =================================================================== --- trunk/CMakeLists.txt 2019-03-25 13:47:32 UTC (rev 7509) +++ trunk/CMakeLists.txt 2019-03-25 13:53:31 UTC (rev 7510) @@ -3,6 +3,7 @@ project(teraterm_all) +option(ENABLE_DPIAWARENESS "Dpiawareness" ON) option(ENABLE_TTXSAMPLES "TTXSamples" ON) option(USE_UNICODE_API "unicode" OFF) Modified: trunk/teraterm/teraterm/CMakeLists.txt =================================================================== --- trunk/teraterm/teraterm/CMakeLists.txt 2019-03-25 13:47:32 UTC (rev 7509) +++ trunk/teraterm/teraterm/CMakeLists.txt 2019-03-25 13:53:31 UTC (rev 7510) @@ -6,6 +6,10 @@ if(USE_UNICODE_API) add_definitions(-DUNICODE -D_UNICODE) endif() +if(ENABLE_DPIAWARENESS) + add_definitions(-DDPIAWARENESS) +endif() + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/") set(COMMON_SRC Modified: trunk/teraterm/teraterm/teraterm.cpp =================================================================== --- trunk/teraterm/teraterm/teraterm.cpp 2019-03-25 13:47:32 UTC (rev 7509) +++ trunk/teraterm/teraterm/teraterm.cpp 2019-03-25 13:53:31 UTC (rev 7510) @@ -114,7 +114,7 @@ #endif DLLInit(); WinCompatInit(); -#if 1 +#if defined(DPIAWARENESS) if (pSetThreadDpiAwarenessContext) { pSetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); }