Displaying 6 results from an estimated 6 matches for "cairo_set_source_rgb".
Did you mean:
cairo_set_source_rgba
2007 Apr 07
3
GWD button drawing prob-- any Cairo pro have insights?
...d the problem (but only if I set the
alpha less than 1.0):
--- gtk/window-decorator/gtk-window-decorator.c
+++ gtk/window-decorator/gtk-window-decorator.c
@@ -943,7 +943,7 @@ button_state_paint (cairo_t *cr,
cairo_stroke_preserve (cr);
if (state & IN_EVENT_WINDOW)
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.99);
else
cairo_set_source_rgba (cr, color->r, color->g, color->b, 0.95);
I'm not proficient enough with Cairo to know if this is a bug there, with
nVidia's driver, or something in GW...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...he background */
- if (player->roots == NULL ||
- !SWFDEC_IS_SPRITE_MOVIE (player->roots->data) ||
- !swfdec_sprite_movie_paint_background (SWFDEC_SPRITE_MOVIE (player->roots->data), cr)) {
- SWFDEC_INFO ("couldn't paint the background, using white");
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- cairo_paint (cr);
- }
+ swfdec_color_set_source (cr, player->bgcolor);
+ cairo_paint (cr);
for (walk = player->roots; walk; walk = walk->next) {
swfdec_movie_render (walk->data, cr, &trans, &real, TRUE);
@@ -1299,3 +1303,42 @@ swfdec_player...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...ndow)
- return FALSE;
-
- if (GTK_WIDGET_CLASS (swfdec_debug_widget_parent_class)->expose_event (gtkwidget, event))
- return TRUE;
-
- cr = gdk_cairo_create (gtkwidget->window);
-
- cairo_arc (cr, debug->x, debug->y, RADIUS - 1.5, 0.0, 2 * G_PI);
- if (debug->button) {
- cairo_set_source_rgba (cr, 0.25, 0.25, 0.25, 0.5);
- cairo_fill_preserve (cr);
- }
- cairo_set_line_width (cr, 3);
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- cairo_stroke_preserve (cr);
- cairo_set_line_width (cr, 1);
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_stroke (cr);
- cairo_destroy (cr);
-...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...noDrawCircle (CompScreen *s, double xc, double yc, double radius,
+ unsigned short *fillColor, unsigned short *strokeColor,
+ double strokeWidth)
+{
+ REGION reg;
+ cairo_t *cr;
+
+ ANNO_SCREEN (s);
+
+ cr = annoCairoContext (s);
+
+ if (cr)
+ {
+
+ double ex1, ey1, ex2, ey2;
+ cairo_set_source_rgba (cr,
+ (double) fillColor[0] / 0xffff,
+ (double) fillColor[1] / 0xffff,
+ (double) fillColor[2] / 0xffff,
+ (double) fillColor[3] / 0xffff);
+ cairo_arc (cr, xc, yc, radius, 0, 2*M_PI);
+ cairo_fill_preserve (cr);
+ cairo_set_line_width (cr, strokeWidth);
+ cai...
2010 Jul 20
1
Building rattle on Solaris 10u7 X86
..., line 557: warning: improper pointer/integer combination: op
"="
"cairoDevice.c", line 618: syntax error before or at: *
"cairoDevice.c", line 618: warning: undefined or missing type for: int
"cairoDevice.c", line 620: warning: implicit function declaration:
cairo_set_source_rgba
"cairoDevice.c", line 620: undefined symbol: cr
"cairoDevice.c", line 620: undefined symbol: color
"cairoDevice.c", line 625: syntax error before or at: *
"cairoDevice.c", line 625: warning: undefined or missing type for: const
"cairoDevice.c", lin...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...(movie->image == NULL)
return;
- surface = movie->input->get_image (movie->input);
cairo_scale (cr, SWFDEC_TWIPS_SCALE_FACTOR, SWFDEC_TWIPS_SCALE_FACTOR);
- if (surface != NULL) {
- cairo_set_source_surface (cr, surface, 0.0, 0.0);
- cairo_paint (cr);
- } else {
- cairo_set_source_rgb (cr, 0, 0, 0);
- cairo_rectangle (cr, 0, 0, movie->video->width, movie->video->height);
- cairo_fill (cr);
- }
+ cairo_set_source_surface (cr, movie->image, 0.0, 0.0);
+ cairo_paint (cr);
}
static void
@@ -65,8 +57,8 @@ swfdec_video_movie_unset_input (SwfdecVi
if (mov...