From 3a06069184a032ac04e677208dbd283f4ea394a2 Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Wed, 18 Aug 2021 01:20:00 -0700 Subject: [PATCH] Kraken tests now use hidpi aware windows --- tests/smoke/hello_cube/CMakeLists.txt | 2 +- tests/smoke/hello_cube/main_win.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/smoke/hello_cube/CMakeLists.txt b/tests/smoke/hello_cube/CMakeLists.txt index adb54f6..1787a15 100644 --- a/tests/smoke/hello_cube/CMakeLists.txt +++ b/tests/smoke/hello_cube/CMakeLists.txt @@ -29,7 +29,7 @@ endif(WIN32) add_dependencies(kraken_cube kraken_cube_assets) target_include_directories(kraken_cube PRIVATE ${CMAKE_SOURCE_DIR}/hydra/include ${CMAKE_SOURCE_DIR}/kraken/public) -TARGET_LINK_LIBRARIES( kraken_cube kraken ${EXTRA_LIBS} ) +TARGET_LINK_LIBRARIES( kraken_cube kraken shcore ${EXTRA_LIBS} ) set_target_properties( kraken_cube PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/output/tests diff --git a/tests/smoke/hello_cube/main_win.cpp b/tests/smoke/hello_cube/main_win.cpp index a9a74c4..bc6a951 100644 --- a/tests/smoke/hello_cube/main_win.cpp +++ b/tests/smoke/hello_cube/main_win.cpp @@ -30,6 +30,7 @@ // #include +#include #include "kraken.h" #include "hello_cube.h" @@ -39,6 +40,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { + SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE); + MSG msg = { 0 }; WNDCLASS wc = { 0 }; wc.lpfnWndProc = WndProc;