| 88 | typedef UINT (WINAPI *GetDpiForWindowFunc)(HWND hwnd); |
| 89 | |
| 90 | UINT GetDpiForWindowDynamic(HWND hwnd) |
| 91 | { |
| 92 | GetDpiForWindowFunc GetDpiForWindowProc = NULL; |
| 93 | HMODULE user32 = GetModuleHandleA("user32.dll"); |
| 94 | |
| 95 | if(user32) |
| 96 | { |
| 97 | GetDpiForWindowProc = (GetDpiForWindowFunc)GetProcAddress(user32, "GetDpiForWindow"); |
| 98 | } |
| 99 | |
| 100 | if(GetDpiForWindowProc) |
| 101 | { |
| 102 | return GetDpiForWindowProc(hwnd); |
| 103 | } |
| 104 | |
| 105 | return 0; |
| 106 | } |
| 107 | |
| 108 | void softgpu_window_create(HWND hwnd, LPARAM lParam) |
| 109 | { |
no outgoing calls
no test coverage detected