Change necessary now that there are true FLTK sub-windows on the Mac OS X platform.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2014-11-25 09:03:30 +00:00
parent f7b50362c4
commit 766a181421

View File

@ -42,9 +42,7 @@ fl_read_image(uchar *p, // I - Pixel buffer or NULL to allocate
if( (sw - x < w) || (sh - y < h) ) return NULL;
}
else { // reading from current window
Fl_Window *window = Fl_Window::current();
while(window->window()) window = window->window();
base = Fl_X::bitmap_from_window_rect(window,x,y,w,h,&delta);
base = Fl_X::bitmap_from_window_rect(Fl_Window::current(),x,y,w,h,&delta);
if (!base) return NULL;
rowBytes = delta*w;
x = y = 0;