diff options
author | Sven Gothel <[email protected]> | 2010-11-02 07:24:17 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-02 07:24:17 +0100 |
commit | 81c02065e28113ffed021b0c69cccc3d4747c6b1 (patch) | |
tree | 2b9d31325916afde4ecf956d747f87f5669695aa /src/newt/native | |
parent | bac49fd604747524e74249b693a9438b62651ddb (diff) |
Fix macosx NEWT warnings
Diffstat (limited to 'src/newt/native')
-rw-r--r-- | src/newt/native/MacWindow.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m index 950a26acc..e5021dcad 100644 --- a/src/newt/native/MacWindow.m +++ b/src/newt/native/MacWindow.m @@ -68,6 +68,7 @@ void setFrameTopLeftPoint(NSWindow* pwin, NSWindow* win, jint x, jint y) NSView* pview = [pwin contentView]; NSRect viewRect = [pview frame]; d_pty = visibleRect.size.height - viewRect.size.height; + (void) d_ptx; //d_pty = visibleRect.origin.y - viewRect.size.height; //d_ptx = visibleRect.size.height - viewRect.size.height; fprintf(stderr, "pwin %lf/%lf %lfx%lf, pview %lf/%lf %lfx%lf -> %d/%d\n", @@ -79,7 +80,7 @@ void setFrameTopLeftPoint(NSWindow* pwin, NSWindow* win, jint x, jint y) viewRect.origin.y, viewRect.size.width, viewRect.size.height, - x, y); + (int)x, (int)y); } |