summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fluid/ide_maketools.cxx3
-rw-r--r--fluid/ide_xcode.cxx3
-rw-r--r--src/Fl_Bitmap.cxx2
-rw-r--r--src/Fl_Window.cxx2
-rw-r--r--src/fl_draw.cxx6
-rw-r--r--src/fl_font_mac.cxx2
-rw-r--r--src/gl_draw.cxx2
7 files changed, 11 insertions, 9 deletions
diff --git a/fluid/ide_maketools.cxx b/fluid/ide_maketools.cxx
index 59c01969a..26c829877 100644
--- a/fluid/ide_maketools.cxx
+++ b/fluid/ide_maketools.cxx
@@ -1431,8 +1431,7 @@ public:
"#define BORDER_WIDTH 2\n#define HAVE_GL 1\n#define HAVE_GL_GLU_H 1\n"
"#define USE_COLORMAP 1\n#define HAVE_XINERAMA 0\n#define USE_XFT 0\n"
"#define HAVE_XDBE 0\n#define USE_XDBE HAVE_XDBE\n", f);
- fputs("#define __APPLE_QUARTZ__ 1\n"
- "#define __APPLE_COCOA__ 1\n#define HAVE_OVERLAY 0\n"
+ fputs("#define __APPLE_QUARTZ__ 1\n#define HAVE_OVERLAY 0\n"
"#define HAVE_GL_OVERLAY HAVE_OVERLAY\n#define WORDS_BIGENDIAN 0\n"
"#define U16 unsigned short\n#define U32 unsigned\n"
"#define HAVE_DIRENT_H 1\n#define HAVE_SCANDIR 1\n"
diff --git a/fluid/ide_xcode.cxx b/fluid/ide_xcode.cxx
index 86632f986..880a85fbe 100644
--- a/fluid/ide_xcode.cxx
+++ b/fluid/ide_xcode.cxx
@@ -1493,8 +1493,7 @@ public:
"#define BORDER_WIDTH 2\n#define HAVE_GL 1\n#define HAVE_GL_GLU_H 1\n"
"#define USE_COLORMAP 1\n#define HAVE_XINERAMA 0\n#define USE_XFT 0\n"
"#define HAVE_XDBE 0\n#define USE_XDBE HAVE_XDBE\n", f);
- fputs("#define __APPLE_QUARTZ__ 1\n"
- "#define __APPLE_COCOA__ 1\n#define HAVE_OVERLAY 0\n"
+ fputs("#define __APPLE_QUARTZ__ 1\n#define HAVE_OVERLAY 0\n"
"#define HAVE_GL_OVERLAY HAVE_OVERLAY\n#define WORDS_BIGENDIAN 0\n"
"#define U16 unsigned short\n#define U32 unsigned\n"
"#define HAVE_DIRENT_H 1\n#define HAVE_SCANDIR 1\n"
diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx
index 48f6ac3df..3995c0773 100644
--- a/src/Fl_Bitmap.cxx
+++ b/src/Fl_Bitmap.cxx
@@ -352,7 +352,7 @@ Fl_Bitmap::~Fl_Bitmap() {
void Fl_Bitmap::uncache() {
if (id_) {
-#ifdef __APPLE_COCOA__
+#ifdef __APPLE_QUARTZ__
fl_delete_bitmask((Fl_Bitmask)id_);
#else
fl_delete_bitmask((Fl_Offscreen)id_);
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index d25a443d0..adc3fa094 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -111,6 +111,8 @@ void Fl_Window::draw() {
draw_children();
#ifdef __APPLE_QUARTZ__
+ // on OS X, windows have no frame. To resize a window, we drag the lower right
+ // corner. This code draws a little ribbed triangle for dragging.
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());
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx
index 630c7cec2..d435bf82b 100644
--- a/src/fl_draw.cxx
+++ b/src/fl_draw.cxx
@@ -350,9 +350,11 @@ void fl_draw(
{
if ((!str || !*str) && !img) return;
if (w && h && !fl_not_clipped(x, y, w, h) && (align & FL_ALIGN_INSIDE)) return;
- if (align & FL_ALIGN_CLIP) fl_push_clip(x, y, w, h);
+ if (align & FL_ALIGN_CLIP)
+ fl_push_clip(x, y, w, h);
fl_draw(str, x, y, w, h, align, fl_draw, img, draw_symbols);
- if (align & FL_ALIGN_CLIP) fl_pop_clip();
+ if (align & FL_ALIGN_CLIP)
+ fl_pop_clip();
}
/**
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx
index 1832edb8c..92fd58055 100644
--- a/src/fl_font_mac.cxx
+++ b/src/fl_font_mac.cxx
@@ -403,7 +403,7 @@ void fl_text_extents(const char *c, int n, int &dx, int &dy, int &w, int &h) {
void fl_draw(const char *str, int n, float x, float y);
void Fl_Device::draw(const char* str, int n, int x, int y) {
- fl_draw(str, n, (float)x-0.0f, (float)y-0.5f);
+ fl_draw(str, n, (float)x-0.0f, (float)y+0.5f);
}
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index fed8feed3..8bae9b51d 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -132,7 +132,7 @@ void gl_font(int fontid, int size) {
}
gl_fontsize = fl_fontsize;
-#ifndef __APPLE_COCOA__
+#ifndef __APPLE_QUARTZ__
glListBase(fl_fontsize->listbase);
#endif
}