Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2006:
[Freeciv-Dev] (PR#7123) Metaissue for FS
Home

[Freeciv-Dev] (PR#7123) Metaissue for FS

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#7123) Metaissue for FS
From: "Christian Prochaska" <cp.ml.freeciv.dev@xxxxxxxxxxxxxx>
Date: Mon, 8 May 2006 19:06:41 -0700
Reply-to: bugs@xxxxxxxxxxx

<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 :-)

Attachment: ftwl_cairo-2006-05-09.diff.gz
Description: application/gzip


[Prev in Thread] Current Thread [Next in Thread]