//
// -[CCWindow initWithFrame:fullscreen:borderless:] from 0x1007975d0 to 0x1007976c1 (241 bytes)
//
// 3 xrefs:
// > -[AppController applicationDidFinishLaunching:] @ 0x10000753d
// > -[EAGLView setFullScreen:borderless:] @ 0x1006662e2
// > ??> @ 0x10099b620
//
// 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
//
CCWindow *__cdecl -[CCWindow initWithFrame:fullscreen:borderless:](CCWindow *self, SEL a2, CGRect a3, char a4, char a5)
{
__int64 v5; // r9
__int64 v8; // rsi
__int64 v9; // rdx
CCWindow *v10; // rbx
v8 = 0x4000;
if ( !a4 )
v8 = 15;
v9 = 0;
if ( !a5 )
v9 = v8;
self->_normalRect.origin = 0;
self->_normalRect.size = 0;
v10 = -[CCWindow initWithContentRect:styleMask:backing:defer:](
self,
"initWithContentRect:styleMask:backing:defer:",
v9,
2,
1,
v5,
*(_QWORD *)&a3.origin.x,
*(_QWORD *)&a3.origin.y,
*(_QWORD *)&a3.size.width,
*(_QWORD *)&a3.size.height);
if ( v10 )
{
if ( a4 != 0 && a5 == 0 )
{
-[CCWindow setLevel:](v10, "setLevel:", 25);
-[CCWindow setHidesOnDeactivate:](v10, "setHidesOnDeactivate:", 1);
-[CCWindow setHasShadow:](v10, "setHasShadow:", 0);
}
-[CCWindow setAcceptsMouseMovedEvents:](v10, "setAcceptsMouseMovedEvents:", 0);
-[CCWindow setOpaque:](v10, "setOpaque:", 1);
}
return v10;
}