diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-03-29 10:35:00 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-03-29 10:35:00 +0000 |
| commit | 941901e273319ce152523af7fa079a6f5cf89d68 (patch) | |
| tree | 9d70b82fa54d81607a0022f14a0518c47805a796 /src/Fl_Window.cxx | |
| parent | b77071a3de3593ea482aa7ea0a442c7fc888a2e2 (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_Window.cxx')
| -rw-r--r-- | src/Fl_Window.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index a06ac29cd..d25a443d0 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -111,7 +111,8 @@ void Fl_Window::draw() { draw_children(); #ifdef __APPLE_QUARTZ__ - if (!parent() && resizable() && (!size_range_set || minh!=maxh || minw!=maxw)) { + extern CGContextRef fl_gc; + if (fl_gc && !parent() && resizable() && (!size_range_set || minh!=maxh || minw!=maxw)) { int dx = Fl::box_dw(box())-Fl::box_dx(box()); int dy = Fl::box_dh(box())-Fl::box_dy(box()); if (dx<=0) dx = 1; @@ -126,10 +127,6 @@ void Fl_Window::draw() { int i; for (i=dx; i<12; i++) { fl_color(c[i&3]); -#ifdef __APPLE_COCOA__ - extern CGContextRef fl_gc; - if(fl_gc) -#endif fl_line(x1--, y1, x2, y2--); } } |
