aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <[email protected]>2005-08-31 08:35:44 +0000
committerYAMAMOTO Mitsuharu <[email protected]>2005-08-31 08:35:44 +0000
commit886a6e31bc6c014c196b1c91df10e327f10d032e (patch)
treee99f5124f11268263738096adfcc1d396eba8efc /src
parent9ecf64037181137928e5288b19837b8638898bc1 (diff)
[!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
Diffstat (limited to 'src')
-rw-r--r--src/macgui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h
index 9591b7a8e3..607890317e 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -87,6 +87,10 @@ typedef GWorldPtr Pixmap;
#define FACE_DEFAULT (~0)
+#if !TARGET_API_MAC_CARBON
+#define GetPixDepth(pmh) ((*(pmh))->pixelSize)
+#endif
+
/* Emulate XCharStruct. */
typedef struct _XCharStruct