From 6b08a2b18f9c5f0ddc01a37e2cf26fa7bdf9d98e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Apr 2015 15:08:49 -0400 Subject: Fixed the OS X build, including warnings. It works. I'm still a bit unhappy about the way these backends are turning out... --- new/darwin/window.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'new/darwin/window.m') diff --git a/new/darwin/window.m b/new/darwin/window.m index af644c0..c243374 100644 --- a/new/darwin/window.m +++ b/new/darwin/window.m @@ -19,7 +19,7 @@ uiLogObjCClassAllocations - (BOOL)windowShouldClose:(id)win { // return exact constants to be safe - if ((*(self.onClosing))(self.uiw, self.onClosingData)) + if ((*(self.onClosing))(uiWindow(self.uiw), self.onClosingData)) return YES; return NO; } @@ -153,10 +153,10 @@ uiWindow *uiNewWindow(const char *title, int width, int height) uiWindow(d.uiw)->SetTitle = windowSetTitle; uiWindow(d.uiw)->Show = windowShow; uiWindow(d.uiw)->Hide = windowHide; - uiWindow(d.uiw)->OnClosing = windowSetOnClosing; + uiWindow(d.uiw)->OnClosing = windowOnClosing; uiWindow(d.uiw)->SetChild = windowSetChild; uiWindow(d.uiw)->Margined = windowMargined; uiWindow(d.uiw)->SetMargined = windowSetMargined; - return d.uiw; + return uiWindow(d.uiw); } -- cgit v1.2.3