diff options
author | Ian Osgood <iano@quirkster.com> | 2006-10-07 11:45:07 -0700 |
---|---|---|
committer | Ian Osgood <iano@quirkster.com> | 2006-10-07 11:45:07 -0700 |
commit | 8cbe72cf7dae11d3944a9f45973c11bcd3867952 (patch) | |
tree | e979fb722c348d6eb28b8aa06edfa028a1e3ca74 /renderutil | |
parent | 173bbad06f2a8e64e72589e07d237cc5c1706af3 (diff) |
Adapt xcb/util libraries for removal of XID structures.
Diffstat (limited to 'renderutil')
-rw-r--r-- | renderutil/cache.c | 6 | ||||
-rw-r--r-- | renderutil/util.c | 26 |
2 files changed, 16 insertions, 16 deletions
diff --git a/renderutil/cache.c b/renderutil/cache.c index 3bfeb87..96acbe8 100644 --- a/renderutil/cache.c +++ b/renderutil/cache.c @@ -115,9 +115,9 @@ has_required_depths (xcb_connection_t *c) * associated visual. Of course, the other depths still * work, but the only way to find out is to try them. */ - if (pixmap.xid == -1) - pixmap = xcb_pixmap_new(c); - root.window = screens.data->root; + if (pixmap == -1) + pixmap = xcb_generate_id(c); + root = screens.data->root; if (!pixmap_depths_usable (c, missing, pixmap, root)) return 0; } diff --git a/renderutil/util.c b/renderutil/util.c index c405d0d..5cd6ac5 100644 --- a/renderutil/util.c +++ b/renderutil/util.c @@ -33,7 +33,7 @@ xcb_render_util_find_visual_format (const xcb_render_query_pict_formats_reply_t for (screens = xcb_render_query_pict_formats_screens_iterator(formats); screens.rem; xcb_render_pictscreen_next(&screens)) for (depths = xcb_render_pictscreen_depths_iterator(screens.data); depths.rem; xcb_render_pictdepth_next(&depths)) for (visuals = xcb_render_pictdepth_visuals_iterator(depths.data); visuals.rem; xcb_render_pictvisual_next(&visuals)) - if (visuals.data->visual.id == visual.id) + if (visuals.data->visual == visual) return visuals.data; return 0; } @@ -50,7 +50,7 @@ xcb_render_util_find_format (const xcb_render_query_pict_formats_reply_t *format for (i = xcb_render_query_pict_formats_formats_iterator(formats); i.rem; xcb_render_pictforminfo_next(&i)) { if (mask & PictFormatID) - if (template->id.xid != i.data->id.xid) + if (template->id != i.data->id) continue; if (mask & PictFormatType) if (template->type != i.data->type) @@ -83,7 +83,7 @@ xcb_render_util_find_format (const xcb_render_query_pict_formats_reply_t *format if (template->direct.alpha_mask != i.data->direct.alpha_mask) continue; if (mask & PictFormatColormap) - if (template->colormap.xid != i.data->colormap.xid) + if (template->colormap != i.data->colormap) continue; if (count-- == 0) return i.data; @@ -102,7 +102,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ /* PictStandardARGB32 */ { { - { 0 }, /* id */ + 0, /* id */ XCB_RENDER_PICT_TYPE_DIRECT, /* type */ 32, /* depth */ { 0 }, /* pad */ @@ -116,7 +116,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ 24, /* direct.alpha */ 0xff, /* direct.alphaMask */ }, - { 0 }, /* colormap */ + 0, /* colormap */ }, PictFormatType | PictFormatDepth | @@ -132,7 +132,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ /* PictStandardRGB24 */ { { - { 0 }, /* id */ + 0, /* id */ XCB_RENDER_PICT_TYPE_DIRECT, /* type */ 24, /* depth */ { 0 }, /* pad */ @@ -146,7 +146,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ 0, /* direct.alpha */ 0x00, /* direct.alphaMask */ }, - { 0 }, /* colormap */ + 0, /* colormap */ }, PictFormatType | PictFormatDepth | @@ -161,7 +161,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ /* PictStandardA8 */ { { - { 0 }, /* id */ + 0, /* id */ XCB_RENDER_PICT_TYPE_DIRECT, /* type */ 8, /* depth */ { 0 }, /* pad */ @@ -175,7 +175,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ 0, /* direct.alpha */ 0xff, /* direct.alphaMask */ }, - { 0 }, /* colormap */ + 0, /* colormap */ }, PictFormatType | PictFormatDepth | @@ -188,7 +188,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ /* PictStandardA4 */ { { - { 0 }, /* id */ + 0, /* id */ XCB_RENDER_PICT_TYPE_DIRECT, /* type */ 4, /* depth */ { 0 }, /* pad */ @@ -202,7 +202,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ 0, /* direct.alpha */ 0x0f, /* direct.alphaMask */ }, - { 0 }, /* colormap */ + 0, /* colormap */ }, PictFormatType | PictFormatDepth | @@ -215,7 +215,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ /* PictStandardA1 */ { { - { 0 }, /* id */ + 0, /* id */ XCB_RENDER_PICT_TYPE_DIRECT, /* type */ 1, /* depth */ { 0 }, /* pad */ @@ -229,7 +229,7 @@ xcb_render_util_find_standard_format (const xcb_render_query_pict_formats_reply_ 0, /* direct.alpha */ 0x01, /* direct.alphaMask */ }, - { 0 }, /* colormap */ + 0, /* colormap */ }, PictFormatType | PictFormatDepth | |