From e0e03f2d4380b9dbec99c545a8a60a3ec17b19a2 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Fri, 24 May 2019 18:07:11 +0200 Subject: [PATCH] forgot ink api --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f15811b..0c2f8d7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,13 +71,13 @@ BOOL(*GetPointerTouchInfo_fn)(UINT32 pointerId, POINTER_TOUCH_INFO* touchInfo); BOOL(*GetPointerPenInfo_fn)(UINT32 pointerId, POINTER_PEN_INFO* penInfo); void init_ink_API() { - HMODULE dll = LoadLibrary(L"User32.lib"); + HMODULE dll = LoadLibrary(L"User32.dll"); if (!dll) { - LOG("cannot load User32.lib"); + LOG("cannot load User32.dll"); return; } - LOG("loaded User32.lib"); + LOG("loaded User32.dll"); GetPointerInfo_fn = (decltype(GetPointerInfo_fn))GetProcAddress(dll, "GetPointerInfo"); GetPointerType_fn = (decltype(GetPointerType_fn))GetProcAddress(dll, "GetPointerType"); GetPointerTouchInfo_fn = (decltype(GetPointerTouchInfo_fn))GetProcAddress(dll, "GetPointerTouchInfo"); @@ -729,6 +729,7 @@ int main(int argc, char** argv) App::I.initLog(); init_shcore_API(); + init_ink_API(); if(SetProcessDpiAwareness_fn) SetProcessDpiAwareness_fn(PROCESS_PER_MONITOR_DPI_AWARE);