// // -[EAGLView setFullScreen:borderless:] from 0x1007454a0 to 0x1007457a6 (774 bytes) // // 1 xrefs: // > @ 0x100bdd118 // // 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:30 +0000 // void __cdecl -[EAGLView setFullScreen:borderless:](EAGLView *self, SEL a2, char a3, char a4) { int v5; // r12d void *v6; // rax id v7; // r15 id v8; // rax id v9; // rax NSApplication *v10; // rax NSApplication *v11; // rax __int64 v12; // rdx __int64 v13; // rcx __int64 v14; // r8 __int64 v15; // r9 CGPoint v16; // xmm0 NSScreen *v17; // rax char v18; // r12 CCWindow *v19; // rax __int64 v20; // r8 __int64 v21; // r9 __int64 v22; // rdx __int64 v23; // rcx __int64 v24; // r8 __int64 v25; // r9 CGPoint v26; // [rsp+20h] [rbp-50h] BYREF CGSize v27; // [rsp+30h] [rbp-40h] int v28; // [rsp+44h] [rbp-2Ch] if ( self->isFullScreen_ != a3 ) { v5 = a4; v6 = (void *)objc_opt_class(self); v7 = objc_msgSend(v6, "sharedEGLView"); if ( a3 ) { v28 = v5; objc_release(self->superViewGLView_); v8 = objc_msgSend(v7, "superview"); self->superViewGLView_ = (NSView *)objc_retain(v8); if ( !self->windowGLView_ ) { v9 = objc_msgSend(v7, "window"); self->windowGLView_ = (NSWindow *)objc_retain(v9); } objc_msgSend(v7, "removeFromSuperview"); v10 = +[NSApplication sharedApplication](&OBJC_CLASS___NSApplication, "sharedApplication"); -[NSApplication setPresentationOptions:](v10, "setPresentationOptions:", 5LL * ((_BYTE)v28 != 0)); if ( v7 ) { objc_msgSend_stret(&v26, (SEL)v7, "frame"); } else { v27 = 0; v26 = 0; } v16 = v26; self->originalWinRect_.size = v27; self->originalWinRect_.origin = v16; v17 = +[NSScreen mainScreen](&OBJC_CLASS___NSScreen, "mainScreen"); v18 = v28; if ( v17 ) { objc_msgSend_stret(&v26, (SEL)v17, "frame"); } else { v27 = 0; v26 = 0; } v19 = objc_alloc(&OBJC_CLASS___CCWindow); self->fullScreenWindow_ = (NSWindow *)-[CCWindow initWithFrame:fullscreen:borderless:]( v19, "initWithFrame:fullscreen:borderless:", 1, (unsigned int)v18, v20, v21, v26, v27); objc_msgSend(v7, "removeFromSuperview"); objc_msgSend(v7, "setFrame:", v22, v23, v24, v25, v26, v27); -[NSWindow setContentView:](self->fullScreenWindow_, "setContentView:", v7); -[NSWindow makeKeyAndOrderFront:](self->fullScreenWindow_, "makeKeyAndOrderFront:", self); -[NSWindow makeMainWindow](self->fullScreenWindow_, "makeMainWindow"); } else { v11 = +[NSApplication sharedApplication](&OBJC_CLASS___NSApplication, "sharedApplication"); -[NSApplication setPresentationOptions:](v11, "setPresentationOptions:", 0); objc_msgSend(v7, "removeFromSuperview"); objc_release(self->fullScreenWindow_); self->fullScreenWindow_ = nullptr; -[NSView addSubview:](self->superViewGLView_, "addSubview:", v7); objc_msgSend( v7, "setFrame:", v12, v13, v14, v15, *(_QWORD *)&self->originalWinRect_.origin.x, *(_QWORD *)&self->originalWinRect_.origin.y, *(_QWORD *)&self->originalWinRect_.size.width, *(_QWORD *)&self->originalWinRect_.size.height); -[NSWindow makeKeyAndOrderFront:](self->windowGLView_, "makeKeyAndOrderFront:", self); -[NSWindow makeMainWindow](self->windowGLView_, "makeMainWindow"); } -[NSWindow makeFirstResponder:](self->windowGLView_, "makeFirstResponder:", v7); self->isFullScreen_ = a3; objc_msgSend(v7, "setNeedsDisplay:", 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source