From a18c1697b1176c26e74267f2ac7a153a2cf2c442 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 18 May 2003 23:06:11 +0000 Subject: make icons use pixel32 data, and image_draw takes pixel32 data. client.c gets pixmap icons as a backup to netwm ones, and they are converted into pixel32 data. --- render/render.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render/render.h') diff --git a/render/render.h b/render/render.h index 3fbf3249..68fec468 100644 --- a/render/render.h +++ b/render/render.h @@ -112,11 +112,11 @@ typedef struct TextureMask { typedef struct TextureRGBA { guint width; guint height; - unsigned long *data; + pixel32 *data; /* cached scaled so we don't have to scale often */ guint cwidth; guint cheight; - unsigned long *cache; + pixel32 *cache; } TextureRGBA; typedef union { @@ -159,7 +159,7 @@ void pixel32_to_pixmap(pixel32 *in, Pixmap out, int x, int y, int w, int h); void appearance_minsize(Appearance *l, int *w, int *h); -void render_pixmap_to_rgba(Pixmap pmap, Pixmap mask, - int *w, int *h, gulong **data); +gboolean render_pixmap_to_rgba(Pixmap pmap, Pixmap mask, + int *w, int *h, pixel32 **data); #endif /*__render_h*/ -- cgit v1.2.3