diff options
| author | Manolo Gouy <Manolo> | 2010-12-18 22:31:01 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-18 22:31:01 +0000 |
| commit | d01c9cdf5b000fa7565351bcf4602f2fbad08b83 (patch) | |
| tree | 281b49dff07d0a67bb5d7474b74c77ab46dd7e4c /src/fl_scroll_area.cxx | |
| parent | 403ee0ce23a0c62ffec254448a327bcc8158b34e (diff) | |
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
Diffstat (limited to 'src/fl_scroll_area.cxx')
| -rw-r--r-- | src/fl_scroll_area.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fl_scroll_area.cxx b/src/fl_scroll_area.cxx index b804b646f..b1f201ffe 100644 --- a/src/fl_scroll_area.cxx +++ b/src/fl_scroll_area.cxx @@ -151,8 +151,7 @@ void fl_scroll(int X, int Y, int W, int H, int dx, int dy, BitBlt(fl_gc, dest_x, dest_y, src_w, src_h, fl_gc, src_x, src_y,SRCCOPY); #elif defined(__APPLE_QUARTZ__) - extern CGImageRef MAC_CGImageFromRectOfWindow(Fl_Window*, int x, int y, int w, int h); - CGImageRef img = MAC_CGImageFromRectOfWindow(Fl_Window::current(), src_x, src_y, src_w, src_h); + CGImageRef img = Fl_X::CGImage_from_window_rect(Fl_Window::current(), src_x, src_y, src_w, src_h); CGRect rect = { { dest_x, dest_y }, { src_w, src_h } }; Fl_X::q_begin_image(rect, 0, 0, src_w, src_h); CGContextDrawImage(fl_gc, rect, img); |
