From: YAMAMOTO Mitsuharu Date: Sat, 8 Oct 2005 02:27:47 +0000 (+0000) Subject: (MAX_CLIP_RECTS): New define. X-Git-Tag: emacs-pretest-22.0.90~6758 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2be96ef8f959ced275347ce76c34094451c65ced;p=emacs.git (MAX_CLIP_RECTS): New define. (struct _XGC): New member clip_region. (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and clip_rects. --- diff --git a/src/macgui.h b/src/macgui.h index 378dbcd9e5c..6e2adb092c6 100644 --- a/src/macgui.h +++ b/src/macgui.h @@ -192,6 +192,19 @@ typedef struct _XGC /* QuickDraw background color. */ RGBColor back_color; + +#define MAX_CLIP_RECTS 2 + /* QuickDraw clipping region. */ + RgnHandle clip_region; + +#if defined (MAC_OSX) && USE_ATSUI + /* Number of clipping rectangles used in Quartz 2D drawing. */ + int n_clip_rects; + + /* Clipping rectangles used in Quartz 2D drawing. The y-coordinate + is in QuickDraw's. */ + CGRect clip_rects[MAX_CLIP_RECTS]; +#endif } *GC; #define GCForeground (1L<<2)