//
// sub_1800DAC00 from 0x1800dac00 to 0x1800dacfa (250 bytes)
//
// 2 xrefs:
// > sub_1800D7860 @ 0x1800d7ae5
// > ??> @ 0x1801bac2c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_1800DAC00(__int64 a1, float *a2, float *a3)
{
int result; // eax
HDC DC; // rbx
int DeviceCaps; // [rsp+38h] [rbp+10h] BYREF
int v9; // [rsp+40h] [rbp+18h] BYREF
if ( a2 )
*a2 = 0.0;
if ( a3 )
*a3 = 0.0;
if ( sub_1800D9D60(6u, 3u, 0) )
{
result = GetDpiForMonitor(a1, 0, &DeviceCaps, &v9);
if ( result )
return (unsigned int)sub_1800D3530(0x10008u, "Win32: Failed to query monitor DPI");
}
else
{
DC = GetDC(nullptr);
DeviceCaps = GetDeviceCaps(DC, 88);
v9 = GetDeviceCaps(DC, 90);
result = ReleaseDC(nullptr, DC);
}
if ( a2 )
{
result = DeviceCaps;
*a2 = (float)DeviceCaps / 96.0;
}
if ( a3 )
{
result = v9;
*a3 = (float)v9 / 96.0;
}
return result;
}