tangled
alpha
login
or
join now
ocrm.bsky.social
/
VoxelBlockGame
1
fork
atom
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1
fork
atom
overview
issues
pulls
pipelines
Remove dyn_SetProcessDpiAwareness
void_17
2 weeks ago
dea46038
52a954e0
-14
1 changed file
expand all
collapse all
unified
split
Minecraft.Client
Windows64
Windows64_Minecraft.cpp
-14
Minecraft.Client/Windows64/Windows64_Minecraft.cpp
···
805
805
if( g_pd3dDevice ) g_pd3dDevice->Release();
806
806
}
807
807
808
808
-
typedef HRESULT(__stdcall* SetProcessDpiAwareness_f)(PROCESS_DPI_AWARENESS);
809
809
-
static HRESULT dyn_SetProcessDpiAwareness(PROCESS_DPI_AWARENESS value)
810
810
-
{
811
811
-
static const auto ptr = reinterpret_cast<SetProcessDpiAwareness_f>(
812
812
-
reinterpret_cast<void*>(::GetProcAddress(static_cast<HMODULE>(LoadLibraryExW(L"Shcore.dll", nullptr, 0)), "SetProcessDpiAwareness")));
813
813
-
if (ptr == nullptr)
814
814
-
{
815
815
-
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
816
816
-
return E_NOTIMPL;
817
817
-
}
818
818
-
819
819
-
return ptr(value);
820
820
-
}
821
821
-
822
808
int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
823
809
_In_opt_ HINSTANCE hPrevInstance,
824
810
_In_ LPTSTR lpCmdLine,