From 81c02065e28113ffed021b0c69cccc3d4747c6b1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 2 Nov 2010 07:24:17 +0100 Subject: Fix macosx NEWT warnings --- src/newt/native/MacWindow.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3