//
// cocos2d::CCEGLView::getDisplaySize from 0x1800797d0 to 0x180079899 (201 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bebe4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:59 +0000
//
float *__fastcall cocos2d::CCEGLView::getDisplaySize(__int64 a1, float *a2)
{
__int64 v2; // rcx
HWND v4; // rax
HMONITOR v5; // rax
float v6; // xmm6_4
float v7; // xmm7_4
struct tagMONITORINFO mi; // [rsp+20h] [rbp-58h] BYREF
v2 = *(_QWORD *)(a1 + 200);
mi.cbSize = 40;
memset(&mi.rcMonitor, 0, 36);
v4 = (HWND)sub_1800D9CB0(v2);
v5 = MonitorFromWindow(v4, 2u);
v6 = 0.0;
v7 = 0.0;
if ( GetMonitorInfoW(v5, &mi) )
{
v6 = (float)mi.rcMonitor.right - (float)mi.rcMonitor.left;
v7 = (float)mi.rcMonitor.bottom - (float)mi.rcMonitor.top;
}
kmVec2Fill(a2, v6, v7);
return a2;
}