[Freeciv-Dev] (PR#7123) Metaissue for FS
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=7123 >
Here's an updated patch. Now the cairo part works with cairo surfaces
which it gets from the graphics backend. The X11 backend should probably
create xlib surfaces, but I didn't know what parameter to give for
"Drawable drawable".
This is the current code:
/*************************************************************************
Create a cairo surface
*************************************************************************/
cairo_surface_t *be_cairo_surface_create(int width, int height) {
cairo_t *cr;
cairo_surface_t *surface;
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);
cr = cairo_create(surface);
cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR);
cairo_paint(cr);
cairo_destroy(cr);
return surface;
}
If somebody knows how to change it to create xlib surfaces instead,
please tell me or send a patch :-)
ftwl_cairo-2006-05-09.diff.gz
Description: application/gzip
|
|