mirror of https://github.com/fltk/fltk
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:
parent
8f79d200a0
commit
86f82cce6a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue