comparison src/macterm.h @ 80548:7936a770db7a

(ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros. (RED_FROM_ULONG): Mask off higher bits. (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 02 May 2008 09:39:31 +0000
parents 9b6c288d125e
children 7f7efbea2334 a0615a586d39
comparison
equal deleted inserted replaced
80547:06b5be2596c3 80548:7936a770db7a
23 23
24 #include "macgui.h" 24 #include "macgui.h"
25 #include "frame.h" 25 #include "frame.h"
26 26
27 #define RGB_TO_ULONG(r, g, b) (((r) << 16) | ((g) << 8) | (b)) 27 #define RGB_TO_ULONG(r, g, b) (((r) << 16) | ((g) << 8) | (b))
28 28 #define ARGB_TO_ULONG(a, r, g, b) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b))
29 #define RED_FROM_ULONG(color) ((color) >> 16) 29
30 #define ALPHA_FROM_ULONG(color) ((color) >> 24)
31 #define RED_FROM_ULONG(color) (((color) >> 16) & 0xff)
30 #define GREEN_FROM_ULONG(color) (((color) >> 8) & 0xff) 32 #define GREEN_FROM_ULONG(color) (((color) >> 8) & 0xff)
31 #define BLUE_FROM_ULONG(color) ((color) & 0xff) 33 #define BLUE_FROM_ULONG(color) ((color) & 0xff)
32 34
33 /* Do not change `* 0x101' in the following lines to `<< 8'. If 35 /* Do not change `* 0x101' in the following lines to `<< 8'. If
34 changed, image masks in 1-bit depth will not work. */ 36 changed, image masks in 1-bit depth will not work. */
655 extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); 657 extern int mac_quit_char_key_p P_ ((UInt32, UInt32));
656 658
657 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 659 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
658 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 660 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
659 661
662 #if USE_MAC_IMAGE_IO
663 extern CGColorSpaceRef mac_cg_color_space_rgb;
664 #endif
665
660 /* Defined in macselect.c */ 666 /* Defined in macselect.c */
661 667
662 extern void x_clear_frame_selections P_ ((struct frame *)); 668 extern void x_clear_frame_selections P_ ((struct frame *));
663 EXFUN (Fx_selection_owner_p, 1); 669 EXFUN (Fx_selection_owner_p, 1);
664 670