summaryrefslogtreecommitdiff
path: root/FL/mac.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-30 20:16:40 +0000
committerManolo Gouy <Manolo>2016-03-30 20:16:40 +0000
commitd67f395031b0e9cfb266bf31a4a5e08a2d109e3b (patch)
tree6a38b9180802e79b16af5de3ff031e6d739ac16c /FL/mac.H
parent7799245100a91b10b9a4ca9c6e818a3cdd8d5dc9 (diff)
Rewrite functions XRectangleRegion(), XDestroyRegion() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/mac.H')
-rw-r--r--FL/mac.H15
1 files changed, 1 insertions, 14 deletions
diff --git a/FL/mac.H b/FL/mac.H
index f00fe240d..7beeba3e2 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -117,20 +117,7 @@ typedef float CGFloat;
#endif
#endif // CGFLOAT_DEFINED
-extern CGRect fl_cgrectmake_cocoa(int x, int y, int w, int h);
-inline Fl_Region XRectangleRegion(int x, int y, int w, int h) {
- Fl_Region R = (Fl_Region)malloc(sizeof(*R));
- R->count = 1;
- R->rects = (CGRect *)malloc(sizeof(CGRect));
- *(R->rects) = fl_cgrectmake_cocoa(x, y, w, h);
- return R;
-}
-inline void XDestroyRegion(Fl_Region r) {
- if(r) {
- free(r->rects);
- free(r);
- }
-}
+//extern CGRect fl_cgrectmake_cocoa(int x, int y, int w, int h);
extern NSCursor *fl_default_cursor;
// This object contains all mac-specific stuff about a window: