Displaying 7 results from an estimated 7 matches for "cairo_set_source_rgba".
2007 Apr 07
3
GWD button drawing prob-- any Cairo pro have insights?
....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 GWD or somewhere else. Anyone have insights?
...MC
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);
+ cair...
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", line...
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);
-...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...+ SWFDEC_COLOR_B (end) * end_ratio) / 65535;
+ a = (SWFDEC_COLOR_A (start) * start_ratio + SWFDEC_COLOR_A (end) * end_ratio) / 65535;
- return SWF_COLOR_COMBINE (r, g, b, a);
+ return SWFDEC_COLOR_COMBINE (r, g, b, a);
}
void
swfdec_color_set_source (cairo_t *cr, SwfdecColor color)
{
cairo_set_source_rgba (cr,
- SWF_COLOR_R (color) / 255.0, SWF_COLOR_G (color) / 255.0,
- SWF_COLOR_B (color) / 255.0, SWF_COLOR_A (color) / 255.0);
+ SWFDEC_COLOR_R (color) / 255.0, SWFDEC_COLOR_G (color) / 255.0,
+ SWFDEC_COLOR_B (color) / 255.0, SWFDEC_COLOR_A (color) / 255.0);
}
unsigned int...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...+ SWFDEC_COLOR_B (end) * end_ratio) / 65535;
+ a = (SWFDEC_COLOR_A (start) * start_ratio + SWFDEC_COLOR_A (end) * end_ratio) / 65535;
- return SWF_COLOR_COMBINE (r, g, b, a);
+ return SWFDEC_COLOR_COMBINE (r, g, b, a);
}
void
swfdec_color_set_source (cairo_t *cr, SwfdecColor color)
{
cairo_set_source_rgba (cr,
- SWF_COLOR_R (color) / 255.0, SWF_COLOR_G (color) / 255.0,
- SWF_COLOR_B (color) / 255.0, SWF_COLOR_A (color) / 255.0);
+ SWFDEC_COLOR_R (color) / 255.0, SWFDEC_COLOR_G (color) / 255.0,
+ SWFDEC_COLOR_B (color) / 255.0, SWFDEC_COLOR_A (color) / 255.0);
}
unsigned int...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...= SWFDEC_DEBUG_WIDGET (gtkwidget);
cairo_t *cr;
@@ -106,7 +107,7 @@ swfdec_debug_widget_expose (GtkWidget *g
cr = gdk_cairo_create (gtkwidget->window);
cairo_arc (cr, debug->x, debug->y, RADIUS - 1.5, 0.0, 2 * G_PI);
- if (widget->button) {
+ if (debug->button) {
cairo_set_source_rgba (cr, 0.25, 0.25, 0.25, 0.5);
cairo_fill_preserve (cr);
}
diff --git a/player/swfdec_debug_widget.h b/player/swfdec_debug_widget.h
index c11c8a4..b00117d 100644
--- a/player/swfdec_debug_widget.h
+++ b/player/swfdec_debug_widget.h
@@ -20,7 +20,7 @@
#ifndef _SWFDEC_DEBUG_WIDGET_H_
#define _...