Win32 implementation of plat_get_dpi().

This commit is contained in:
OBattler
2023-08-12 17:58:55 +02:00
parent 0ac3bb1620
commit 15b1262d9f

View File

@@ -1286,3 +1286,11 @@ endblit(void)
{
ReleaseMutex(ghMutex);
}
double
plat_get_dpi(void)
{
UINT dpi = GetDeviceCaps(dc, LOGPIXELSX);
return ((double) dpi) / 96.0;
}