MacOS: fix crash when making fullscreen the scrolled scroll test program
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
2bf7d7af26
commit
611aa48620
@ -4248,6 +4248,7 @@ static NSBitmapImageRep* rect_to_NSBitmapImageRep(Fl_Window *win, int x, int y,
|
||||
NSEnumerator *enumerator = [children objectEnumerator];
|
||||
id child;
|
||||
while ((child = [enumerator nextObject]) != nil) {
|
||||
if (![child isKindOfClass:[FLWindow class]]) continue;
|
||||
Fl_Window *sub = [(FLWindow*)child getFl_Window];
|
||||
CGRect rsub = CGRectMake(sub->x(), win->h() -(sub->y()+sub->h()), sub->w(), sub->h());
|
||||
CGRect clip = CGRectMake(x, win->h()-(y+h), w, h);
|
||||
|
Loading…
Reference in New Issue
Block a user