diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
| commit | 6b08a2b18f9c5f0ddc01a37e2cf26fa7bdf9d98e (patch) | |
| tree | cbec9d83a0302928dab0855cd9daa87720d56ac1 /new/darwin/window.m | |
| parent | 946b3ea34228e92eb39b1be587ede058d8942e34 (diff) | |
Fixed the OS X build, including warnings. It works. I'm still a bit unhappy about the way these backends are turning out...
Diffstat (limited to 'new/darwin/window.m')
| -rw-r--r-- | new/darwin/window.m | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
