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:
parent
f7b50362c4
commit
766a181421
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user