mirror of https://github.com/fltk/fltk
Attempt to improve on fl_scroll for Quartz on Mac, but we probably already use the best function. Added comment noting this attempt.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
05bd3ade18
commit
3f5710ca72
|
@ -115,6 +115,7 @@ void fl_scroll(int X, int Y, int W, int H, int dx, int dy,
|
|||
GetPortBitMapForCopyBits( GetWindowPort(fl_window) ), &src, &dst, srcCopy, 0L);
|
||||
#elif defined(__APPLE_QUARTZ__)
|
||||
// warning: there does not seem to be an equivalent to this function in Quartz
|
||||
// ScrollWindowRect is a QuickDraw function and won't work here.
|
||||
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 );
|
||||
|
|
Loading…
Reference in New Issue