diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-03 07:00:55 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-03 07:00:55 +0700 |
| commit | dea460381fd80af44d1d84ec6444a056000a3365 (patch) | |
| tree | 233cf4e1b9fc96468c2d792dd162bebe598d70e6 /Minecraft.Client/Windows64/Windows64_Minecraft.cpp | |
| parent | 52a954e06e282d00bc5b23d6e1fc9aed7754b604 (diff) | |
Remove dyn_SetProcessDpiAwareness
Diffstat (limited to 'Minecraft.Client/Windows64/Windows64_Minecraft.cpp')
| -rw-r--r-- | Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index a1bdcd0f..52939930 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -805,20 +805,6 @@ void CleanupDevice() if( g_pd3dDevice ) g_pd3dDevice->Release(); } -typedef HRESULT(__stdcall* SetProcessDpiAwareness_f)(PROCESS_DPI_AWARENESS); -static HRESULT dyn_SetProcessDpiAwareness(PROCESS_DPI_AWARENESS value) -{ - static const auto ptr = reinterpret_cast<SetProcessDpiAwareness_f>( - reinterpret_cast<void*>(::GetProcAddress(static_cast<HMODULE>(LoadLibraryExW(L"Shcore.dll", nullptr, 0)), "SetProcessDpiAwareness"))); - if (ptr == nullptr) - { - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return E_NOTIMPL; - } - - return ptr(value); -} - int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPTSTR lpCmdLine, |
