summaryrefslogtreecommitdiff
path: root/src/fl_scroll_area.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-03-29 10:35:00 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-03-29 10:35:00 +0000
commit941901e273319ce152523af7fa079a6f5cf89d68 (patch)
tree9d70b82fa54d81607a0022f14a0518c47805a796 /src/fl_scroll_area.cxx
parentb77071a3de3593ea482aa7ea0a442c7fc888a2e2 (diff)
OS X: removed all Carbon and Quickdraw references. Starting with 1.3, we only support Cocoa and Quartz.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_scroll_area.cxx')
-rw-r--r--src/fl_scroll_area.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/fl_scroll_area.cxx b/src/fl_scroll_area.cxx
index ff07ef3b4..870989898 100644
--- a/src/fl_scroll_area.cxx
+++ b/src/fl_scroll_area.cxx
@@ -151,8 +151,6 @@ 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__)
-
-#if defined(__APPLE_COCOA__)
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);
CGRect rect = { { dest_x, dest_y }, { src_w, src_h } };
@@ -161,19 +159,6 @@ void fl_scroll(int X, int Y, int W, int H, int dx, int dy,
Fl_X::q_end_image();
CFRelease(img);
#else
- // warning: there does not seem to be an equivalent to this function in Quartz
- // ScrollWindowRect is a QuickDraw function and won't work here.
- // Since on OS X all windows are fully double buffered, we need not
- // worry about offscreen or obscured areas
- Rect src = { src_y, src_x, src_y+src_h, src_x+src_w };
- Rect dst = { dest_y, dest_x, dest_y+src_h, dest_x+src_w };
- static RGBColor bg = { 0xffff, 0xffff, 0xffff }; RGBBackColor( &bg );
- static RGBColor fg = { 0x0000, 0x0000, 0x0000 }; RGBForeColor( &fg );
- CopyBits( GetPortBitMapForCopyBits( GetWindowPort(fl_window) ),
- GetPortBitMapForCopyBits( GetWindowPort(fl_window) ), &src, &dst, srcCopy, 0L);
-#endif
-
-#else
# error unsupported platform
#endif
if (dx) draw_area(data, clip_x, dest_y, clip_w, src_h);