(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.
This commit is contained in:
parent
b03daa516d
commit
afc09abd4d
1 changed files with 7 additions and 1 deletions
|
@ -25,8 +25,10 @@ Boston, MA 02110-1301, USA. */
|
|||
#include "frame.h"
|
||||
|
||||
#define RGB_TO_ULONG(r, g, b) (((r) << 16) | ((g) << 8) | (b))
|
||||
#define ARGB_TO_ULONG(a, r, g, b) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b))
|
||||
|
||||
#define RED_FROM_ULONG(color) ((color) >> 16)
|
||||
#define ALPHA_FROM_ULONG(color) ((color) >> 24)
|
||||
#define RED_FROM_ULONG(color) (((color) >> 16) & 0xff)
|
||||
#define GREEN_FROM_ULONG(color) (((color) >> 8) & 0xff)
|
||||
#define BLUE_FROM_ULONG(color) ((color) & 0xff)
|
||||
|
||||
|
@ -657,6 +659,10 @@ extern int mac_quit_char_key_p P_ ((UInt32, UInt32));
|
|||
#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
|
||||
#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
|
||||
|
||||
#if USE_MAC_IMAGE_IO
|
||||
extern CGColorSpaceRef mac_cg_color_space_rgb;
|
||||
#endif
|
||||
|
||||
/* Defined in macselect.c */
|
||||
|
||||
extern void x_clear_frame_selections P_ ((struct frame *));
|
||||
|
|
Loading…
Add table
Reference in a new issue