summaryrefslogtreecommitdiff
path: root/src/fl_rect.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-06-01 03:49:43 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-06-01 03:49:43 +0000
commit04c67e441e13bc3e0e786cda5da6318334f5658b (patch)
treea319886eb6e6c894085b18994915e74234a46255 /src/fl_rect.cxx
parent9d12e01cc7263f7c3c1a3d725ceb955839fd3fe0 (diff)
Fix clipping code on OSX...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_rect.cxx')
-rw-r--r--src/fl_rect.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx
index 0423e8275..170003594 100644
--- a/src/fl_rect.cxx
+++ b/src/fl_rect.cxx
@@ -452,26 +452,11 @@ void fl_restore_clip() {
#ifdef WIN32
SelectClipRgn(fl_gc, r); //if r is NULL, clip is automatically cleared
#elif defined(__APPLE_QD__)
-# if 1
- if ( fl_window )
- {
- GrafPtr port = GetWindowPort( fl_window );
- if ( port ) { // port will be NULL if we are using a GWorld (and fl_window_region is invalid)
- RgnHandle portClip = NewRgn();
- CopyRgn( fl_window_region, portClip ); // changed
- if ( r )
- SectRgn( portClip, r, portClip );
- SetPortClipRegion( port, portClip );
- DisposeRgn( portClip );
- }
- }
-# else
if (r) SetClip(r);
else {
Rect rect; rect.left=0; rect.top=0; rect.right=0x7fff; rect.bottom=0x7fff;
ClipRect(&rect);
}
-# endif
#elif defined(__APPLE_QUARTZ__)
if ( fl_window )
{