//
// cocos2d::CCApplication::checkMonitorChanged from 0x1800754f0 to 0x180075561 (113 bytes)
//
// 4 xrefs:
// > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a82d
// > sub_18007A840 @ 0x18007a867
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be740
//
// 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:58 +0000
//
void __fastcall cocos2d::CCApplication::checkMonitorChanged(cocos2d::CCApplication *this)
{
__int64 v2; // rcx
HWND v3; // rax
if ( !*((_BYTE *)this + 213) )
{
if ( *((_BYTE *)this + 208) )
{
if ( *((_QWORD *)this + 25) )
{
v2 = *((_QWORD *)cocos2d::CCDirector::sharedDirector() + 24);
if ( v2 )
{
if ( *(_QWORD *)(v2 + 200) )
{
v3 = (HWND)sub_1800D9CB0();
if ( MonitorFromWindow(v3, 2u) != *((HMONITOR *)this + 25) )
cocos2d::CCApplication::updateVerticalSync(this);
}
}
}
}
}
}