From d01c9cdf5b000fa7565351bcf4602f2fbad08b83 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 18 Dec 2010 22:31:01 +0000 Subject: Mac OS: replaced several global functions by new member functions of Mac OS-specific Fl_X class. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_read_image_mac.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fl_read_image_mac.cxx') diff --git a/src/fl_read_image_mac.cxx b/src/fl_read_image_mac.cxx index 7c7b9586f..2ccd5f56d 100644 --- a/src/fl_read_image_mac.cxx +++ b/src/fl_read_image_mac.cxx @@ -26,7 +26,6 @@ // #include -extern unsigned char *MACbitmapFromRectOfWindow(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel); // // 'fl_read_image()' - Read an image from the current window or off-screen buffer. @@ -54,7 +53,7 @@ fl_read_image(uchar *p, // I - Pixel buffer or NULL to allocate else { // reading from current window Fl_Window *window = Fl_Window::current(); while(window->window()) window = window->window(); - base = MACbitmapFromRectOfWindow(window,x,y,w,h,&delta); + base = Fl_X::bitmap_from_window_rect(window,x,y,w,h,&delta); rowBytes = delta*w; x = y = 0; } -- cgit v1.2.3