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/screen_xywh.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/screen_xywh.cxx')
| -rw-r--r-- | src/screen_xywh.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index 3ef2aa970..41f9d46e6 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -109,22 +109,7 @@ XRectangle screens[16]; extern int MACscreen_init(XRectangle screens[]); static void screen_init() { -#ifdef __APPLE_COCOA__ - num_screens = MACscreen_init(screens); -#else - GDHandle gd; - - for (gd = GetDeviceList(), num_screens = 0; gd; gd = GetNextDevice(gd)) { - GDPtr gp = *gd; - screens[num_screens].x = gp->gdRect.left; - screens[num_screens].y = gp->gdRect.top; - screens[num_screens].width = gp->gdRect.right - gp->gdRect.left; - screens[num_screens].height = gp->gdRect.bottom - gp->gdRect.top; - - num_screens ++; - if (num_screens >= 16) break; - } -#endif + num_screens = MACscreen_init(screens); } #elif HAVE_XINERAMA # include <X11/extensions/Xinerama.h> |
