Kraken tests now use hidpi aware windows
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
//
|
||||
|
||||
#include <windows.h>
|
||||
#include <shellscalingapi.h>
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user