summaryrefslogtreecommitdiff
path: root/src/fl_read_image_mac.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_read_image_mac.cxx')
-rw-r--r--src/fl_read_image_mac.cxx3
1 files changed, 1 insertions, 2 deletions
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 <config.h>
-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;
}