//
// -[CCWindow initWithFrame:fullscreen:borderless:] from 0x100877fd0 to 0x1008780c1 (241 bytes)
//
// 3 xrefs:
// > -[AppController applicationDidFinishLaunching:] @ 0x1000037ed
// > -[EAGLView setFullScreen:borderless:] @ 0x1007456f2
// > ??> @ 0x100bdd6f0
//
// 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 12:36:53 +0000
//
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;
}