Win32 implementation of plat_get_dpi().
This commit is contained in:
@@ -1286,3 +1286,11 @@ endblit(void)
|
||||
{
|
||||
ReleaseMutex(ghMutex);
|
||||
}
|
||||
|
||||
double
|
||||
plat_get_dpi(void)
|
||||
{
|
||||
UINT dpi = GetDeviceCaps(dc, LOGPIXELSX);
|
||||
|
||||
return ((double) dpi) / 96.0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user