typedef XColor Emacs_Color;
typedef Cursor Emacs_Cursor;
#define No_Cursor (None)
+typedef Pixmap Emacs_Pixmap;
#else /* !HAVE_X_WINDOWS */
#define FACE_COLOR_TO_PIXEL(face_color, frame) ns_color_index_to_rgba(face_color, frame)
/* Following typedef needed to accommodate the MSDOS port, believe it or not. */
typedef struct ns_display_info Display_Info;
-typedef Pixmap XImagePtr;
+typedef Emacs_Pixmap XImagePtr;
typedef XImagePtr XImagePtr_or_DC;
#else
#define FACE_COLOR_TO_PIXEL(face_color, frame) face_color
struct timespec timestamp;
/* Pixmaps of the image. */
- Pixmap pixmap, mask;
+ Emacs_Pixmap pixmap, mask;
#ifdef USE_CAIRO
void *cr_data;
#endif
extern Lisp_Object image_find_image_file (Lisp_Object);
-void x_kill_gs_process (Pixmap, struct frame *);
+void x_kill_gs_process (Emacs_Pixmap, struct frame *);
struct image_cache *make_image_cache (void);
void free_image_cache (struct frame *);
void clear_image_caches (Lisp_Object);
#ifdef HAVE_NTGUI
Lisp_Object frame UNINIT; /* The value is not used. */
- Pixmap bitmap;
+ Emacs_Pixmap bitmap;
bitmap = CreateBitmap (width, height,
FRAME_DISPLAY_INFO (XFRAME (frame))->n_planes,
FRAME_DISPLAY_INFO (XFRAME (frame))->n_cbits,
#endif
static bool image_create_x_image_and_pixmap_1 (struct frame *, int, int, int,
- XImagePtr *, Pixmap *, Picture *);
+ XImagePtr *, Emacs_Pixmap *,
+ Picture *);
static void image_destroy_x_image (XImagePtr ximg);
#ifdef HAVE_NTGUI
}
/* Create an XImage and a pixmap of size WIDTH x HEIGHT for use on
- frame F. Set *XIMG and *PIXMAP to the XImage and Pixmap created.
- Set (*XIMG)->data to a raster of WIDTH x HEIGHT pixels allocated
- via xmalloc. Print error messages via image_error if an error
- occurs. Value is true if successful.
+ frame F. Set *XIMG and *PIXMAP to the XImage and Emacs_Pixmap
+ created. Set (*XIMG)->data to a raster of WIDTH x HEIGHT pixels
+ allocated via xmalloc. Print error messages via image_error if an
+ error occurs. Value is true if successful.
On W32, a DEPTH of zero signifies a 24 bit image, otherwise DEPTH
should indicate the bit depth of the image. */
static bool
image_create_x_image_and_pixmap_1 (struct frame *f, int width, int height, int depth,
- XImagePtr *ximg, Pixmap *pixmap, Picture *picture)
+ XImagePtr *ximg, Emacs_Pixmap *pixmap,
+ Picture *picture)
{
#ifdef HAVE_X_WINDOWS
Display *display = FRAME_X_DISPLAY (f);
are width and height of both the image and pixmap. */
static void
-gui_put_x_image (struct frame *f, XImagePtr ximg, Pixmap pixmap,
+gui_put_x_image (struct frame *f, XImagePtr ximg, Emacs_Pixmap pixmap,
int width, int height)
{
#ifdef HAVE_X_WINDOWS
telling Emacs that Ghostscript has finished drawing. */
void
-x_kill_gs_process (Pixmap pixmap, struct frame *f)
+x_kill_gs_process (Emacs_Pixmap pixmap, struct frame *f)
{
struct image_cache *c = FRAME_IMAGE_CACHE (f);
ptrdiff_t i;