summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 46b9fad24..d0da4dbfb 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1,7 +1,7 @@
//
// "$Id: Fl_cocoa.mm 6971 2009-04-13 07:32:01Z matt $"
//
-// MacOS specific code for the Fast Light Tool Kit (FLTK).
+// MacOS-Cocoa specific code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2009 by Bill Spitzak and others.
//
@@ -1908,11 +1908,6 @@ void Fl_X::make(Fl_Window* w)
static int xyPos = 100;
if ( w->parent() ) { // create a subwindow
Fl_Group::current(0);
- Rect wRect;
- wRect.top = w->y();
- wRect.left = w->x();
- wRect.bottom = w->y() + w->h(); if (wRect.bottom<=wRect.top) wRect.bottom = wRect.top+1;
- wRect.right = w->x() + w->w(); if (wRect.right<=wRect.left) wRect.right = wRect.left+1;
// our subwindow needs this structure to know about its clipping.
Fl_X* x = new Fl_X;
x->other_xid = 0;
@@ -2012,12 +2007,6 @@ void Fl_X::make(Fl_Window* w)
while (w->parent()) w = w->window(); // todo: this code does not make any sense! (w!=w??)
}
- Rect wRect;
- wRect.top = w->y();
- wRect.left = w->x();
- wRect.bottom = w->y() + w->h(); if (wRect.bottom<=wRect.top) wRect.bottom = wRect.top+1;
- wRect.right = w->x() + w->w(); if (wRect.right<=wRect.left) wRect.right = wRect.left+1;
-
const char *name = w->label();
Fl_X* x = new Fl_X;