]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libgpewidget/libgpewidget-0.102/cairo.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libgpewidget / libgpewidget-0.102 / cairo.patch
1 --- /tmp/gpeclockface.c 2005-08-07 22:30:20.000000000 +0200
2 +++ libgpewidget-0.102/gpeclockface.c   2005-08-08 10:10:09.180756032 +0200
3 @@ -1,5 +1,5 @@
4  /*
5 - * Copyright (C) 2003 Philip Blundell <philb@gnu.org>
6 + * Copyright (C) 2003, 2005 Philip Blundell <philb@gnu.org>
7   *
8   * This program is free software; you can redistribute it and/or
9   * modify it under the terms of the GNU General Public License
10 @@ -11,6 +11,7 @@
11  
12  #include <sys/types.h>
13  #include <stdio.h>
14 +#include <string.h>
15  #include <stdlib.h>
16  #include <math.h>
17  #include <string.h>
18 @@ -267,7 +268,7 @@
19                  0,
20                  2 * M_PI);
21        cairo_fill (clock->cr);
22 -      cairo_set_rgb_color (clock->cr, 0, 0, 0);
23 +      cairo_set_source_rgba (clock->cr, 0, 0, 0, 1.0);
24        cairo_arc (clock->cr,
25                  clock->x_offset + clock->radius,
26                  clock->y_offset + clock->radius,
27 @@ -493,11 +494,10 @@
28    gcm = gdk_drawable_get_colormap (widget->window);
29        
30  #ifdef HAVE_CAIRO
31 -  clock->cr = cairo_create ();
32    clock->surface = cairo_xlib_surface_create (dpy, GDK_WINDOW_XWINDOW (clock->backing_pixmap), 
33                                               gdk_x11_visual_get_xvisual (gv), 0, 
34                                               gdk_x11_colormap_get_xcolormap (gcm));
35 -  cairo_set_target_surface (clock->cr, clock->surface);
36 +  clock->cr = cairo_create (clock->surface);
37  #else
38    clock->backing_poly_gc = gdk_gc_new (clock->backing_pixmap);
39  #endif