Applied patch from STR#2428 to fix warnings on OSX/Tiger for fl_rect.cxx.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7768 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2010-10-28 23:08:06 +00:00
parent 8f79d200a0
commit 86f82cce6a
1 changed files with 4 additions and 4 deletions

View File

@ -597,10 +597,10 @@ int Fl_Graphics_Driver::clip_box(int x, int y, int w, int h, int& X, int& Y, int
else u = CGRectUnion(u, test);
}
}
X = u.origin.x;
Y = u.origin.y;
W = u.size.width + 1;
H = u.size.height + 1;
X = int(u.origin.x);
Y = int(u.origin.y);
W = int(u.size.width + 1);
H = int(u.size.height + 1);
if(CGRectIsEmpty(u)) W = H = 0;
return ! CGRectEqualToRect(arg, u);
#else