Kraken tests now use hidpi aware windows

This commit is contained in:
2021-08-18 01:20:00 -07:00
parent e485518227
commit 3a06069184
2 changed files with 4 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ endif(WIN32)
add_dependencies(kraken_cube kraken_cube_assets) add_dependencies(kraken_cube kraken_cube_assets)
target_include_directories(kraken_cube PRIVATE ${CMAKE_SOURCE_DIR}/hydra/include ${CMAKE_SOURCE_DIR}/kraken/public) 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 set_target_properties( kraken_cube PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/output/tests RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/output/tests

View File

@@ -30,6 +30,7 @@
// //
#include <windows.h> #include <windows.h>
#include <shellscalingapi.h>
#include "kraken.h" #include "kraken.h"
#include "hello_cube.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) int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{ {
SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
MSG msg = { 0 }; MSG msg = { 0 };
WNDCLASS wc = { 0 }; WNDCLASS wc = { 0 };
wc.lpfnWndProc = WndProc; wc.lpfnWndProc = WndProc;