Displaying 20 results from an estimated 21 matches for "background_color".
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...- a/libswfdec/swfdec_text_field_movie_as.c
+++ b/libswfdec/swfdec_text_field_movie_as.c
@@ -486,7 +486,10 @@ swfdec_text_field_movie_get_backgroundColor (SwfdecAsContext *cx,
SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, "");
- SWFDEC_AS_VALUE_SET_NUMBER (ret, text->background_color);
+ SWFDEC_AS_VALUE_SET_NUMBER (ret,
+ SWFDEC_COLOR_R (text->background_color) << 16 |
+ SWFDEC_COLOR_G (text->background_color) << 8 |
+ SWFDEC_COLOR_B (text->background_color));
}
static void
@@ -546,7 +549,11 @@ swfdec_text_field_movie_get_borderColor (Sw...
2001 Sep 19
2
tcltk: Difficulties creating menus
...l/Tk) works fine:
#!/usr/bin/perl -w
use Tk;
my $mw = MainWindow->new;
$menub = $mw->Menubutton(-text => "Color")->pack();
foreach (qw/red yellow green blue grey/) {
$menub->radiobutton(-label => $_, -command => \&set_bg,
-variable => \$background_color, -value => $_);
}
MainLoop;
sub set_bg {
print "Background value is now: $background_color\n";
$mw->configure(-background => $background_color);
}
I cannot get anything similar to work under R. Adding a tkmenubutton is
easy, but I fail to get it to "connect" to an...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...eld_movie.c
@@ -935,8 +935,8 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
text->format_new->indent = text->text->indent / 20;
text->format_new->leading = text->text->leading / 20;
- text->border_color = SWFDEC_COLOR_COMBINE (0, 0, 0, 0);
- text->background_color = SWFDEC_COLOR_COMBINE (255, 255, 255, 0);
+ text->border_color = SWFDEC_COLOR_COMBINE (0, 0, 0, 255);
+ text->background_color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255);
// text
if (text->text->text_input != NULL) {
diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libs...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...id
diff --git a/libswfdec/swfdec_text_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index f394747..d7bbb03 100644
--- a/libswfdec/swfdec_text_field_movie.h
+++ b/libswfdec/swfdec_text_field_movie.h
@@ -63,6 +63,11 @@ struct _SwfdecTextFieldMovie {
SwfdecColor border_color;
SwfdecColor background_color;
+ // FIXME: Temporary using image surface, until there is a way to get cairo_t
+ // outside the rendering functions
+ cairo_surface_t * surface;
+ cairo_t * cr;
+
/* for rendering */
SwfdecParagraph * paragraphs;
};
commit 251eb0e0a313a7ebf017e4f17105b96fedf77e4a
Author: Pekka Lampil...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...;word_wrap)
- break;
- }
- }
-
- if (num != NULL)
- *num = layouts->len;
-
- return (SwfdecLayout *)g_array_free (layouts, FALSE);
-}
-
-void
-swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr,
- const SwfdecParagraph *paragraphs, SwfdecColor border_color,
- SwfdecColor background_color, const SwfdecColorTransform *trans,
- const SwfdecRect *inval)
-{
- SwfdecLayout *layouts;
- SwfdecRect limit;
- SwfdecColor color;
- int i, y, x, linenum;
- gboolean first;
-
- g_return_if_fail (SWFDEC_IS_TEXT_FIELD (text));
- g_return_if_fail (cr != NULL);
- g_return_if_fail (paragraph...
2010 Dec 01
1
Prawn : undefined method `make_table'
...equire ''prawn/core''
require ''prawn/layout''
Prawn::Document.new do |pdf|
subtable = pdf.make_table([[ "foo", "bar" ], [ "baz", "bax" ]],
:column_widths => [ 50, 50 ]) {
column(0).background_color = "808080"
cells.borders = []
}
table = pdf.make_table([[ "foo", "bar" ], [ "baz", subtable ]],
:column_widths => [ 100, 100 ]) {
cells.border_width = 5
}
table.draw
end
When i execute the ab...
2006 Jun 05
1
Strange problem with Gruff not always displaying graph
...f::Line.new(290)
g.title = "Reports"
g.theme = {
:colors => [''#CC0000'', ''#00CC00'', ''#cc6633'', ''#cc9966'',
''#99cc99''],
:marker_color => ''black'',
:background_colors => [''#FAFAFA'', ''#FAFAFA'']
}
report_number = []
labels = []
@report = User.find(session[:user]).reports.find(params[:id])
@records = @report.report_items.find(:all, :conditions => [
"report_context = ''Required'...
2007 Jan 04
1
rmagick working in console but not in my app
hey all,
When I do this in script/console I get:
>> require ''RMagick''
=> true
>> include Magick
=> Object
>> f = Image.new(100,100) { self.background_color = "red" }
=> 100x100 DirectClass 16-bit
>> f.crop_resized(50,50)
=> 50x50 DirectClass 16-bit
But in my application I keep getting the same error as if rmagick was
not installed though it is and I can use it with irb. This is the
error I get:
ActionView::TemplateError (un...
2007 Oct 14
1
libswfdec/swfdec_text_field.c
libswfdec/swfdec_text_field.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
New commits:
commit 13a1f11d9aebddc8d2e24c94878547589c485832
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sun Oct 14 18:22:17 2007 +0300
Implement aligning TextField lines even when wordWrap is off
diff --git a/libswfdec/swfdec_text_field.c
2007 Oct 27
1
libswfdec/swfdec_text_field_movie.c
libswfdec/swfdec_text_field_movie.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 27e0f570ff653063b78efc89a604236e7fe03ece
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sat Oct 27 17:14:06 2007 +0300
Init TextField's native properties when TextField is created from a tag
diff --git a/libswfdec/swfdec_text_field_movie.c
2014 Jun 05
1
[Bug 79701] New: [NVA0] GPU lockup when playing video with VDPAU
...RFACE_WIDTH y 48 2048
VIDEO_SURFACE_HEIGHT y 48 2048
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y
--
You are receiving this mail because:
You are the assignee...
2007 Nov 01
0
2 commits - libswfdec/swfdec_text_field_movie.c test/image
...b/libswfdec/swfdec_text_field_movie.c
@@ -593,7 +593,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
if (text->background) {
cairo_rectangle (cr, limit.x0, limit.y0, limit.x1 - limit.x0, limit.y1 - limit.y0);
color = swfdec_color_apply_transform (text_movie->background_color, trans);
- swfdec_color_set_source (cr, color);
+ // always use full alpha
+ swfdec_color_set_source (cr, (color & 0xffffff) + (255 << 24));
cairo_fill (cr);
}
@@ -604,7 +605,8 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr,
movie->original_exte...
2008 Jan 21
4
Rails app cannot connect to Ferret server
...true, ENV["FERRET_USE_LOCAL_INDEX"] is nil,
looks like we are not the server
Will use remote index server which should be available at
druby://localhost:9010
Ad Columns (0.004026) SHOW FIELDS FROM `ads`
default field list: [:keywords, :family_tree_other, :description, :sex,
:top_ad, :background_color, :family_tree, :notified_expired,
:ad_kind_id, :callname, :show_bold_border, :race_id, :castrated,
:display_type, :homepage_url, :distinctive_features, :email,
:read_count, :age, :duration, :title, :show_contact, :ts_create,
:age_unit, :price, :show_image_on_list, :phone2, :ts_display, :color_id,
:...
2011 Oct 09
1
(no subject)
Hi,
This is my work in documenting EVO.
I did some RE to fill missing gaps.
Best regards,
Maxim Levitsky
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...ckground = value;
- swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+ swfdec_movie_invalidate_last (SWFDEC_MOVIE (text));
}
}
@@ -506,7 +506,7 @@ swfdec_text_field_movie_set_backgroundColor (SwfdecAsContext *cx,
color = swfdec_text_field_movie_int_to_color (cx, value);
if (text->background_color != color) {
text->background_color = color;
- swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+ swfdec_movie_invalidate_last (SWFDEC_MOVIE (text));
}
}
@@ -536,7 +536,7 @@ swfdec_text_field_movie_set_border (SwfdecAsContext *cx,
if (text->text->border != value) {...
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...(SwfdecMovie *movie, cairo_t *cr,
cairo_clip (cr);
if (text->background) {
- cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
+ cairo_rectangle (cr, limit.x0, limit.y0, limit.x1 - limit.x0, limit.y1 - limit.y0);
color = swfdec_color_apply_transform (text_movie->background_color, trans);
swfdec_color_set_source (cr, color);
cairo_fill (cr);
}
if (text->border) {
- cairo_rectangle (cr, movie->original_extents.x0,
- movie->original_extents.y0, movie->original_extents.x1,
- movie->original_extents.y1);
+ cairo_rectangle (cr, movie->or...
2014 Nov 07
15
[Bug 86006] New: [NV84] Nvidia GeForce 8600 GT VDPAU h264 hardware acceleration
https://bugs.freedesktop.org/show_bug.cgi?id=86006
Bug ID: 86006
Summary: [NV84] Nvidia GeForce 8600 GT VDPAU h264 hardware
acceleration
Product: xorg
Version: 7.6 (2010.12)
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...und) {
- cairo_rectangle (cr, SWFDEC_GRAPHIC (text)->extents.x0,
- SWFDEC_GRAPHIC (text)->extents.y0, SWFDEC_GRAPHIC (text)->extents.x1,
- SWFDEC_GRAPHIC (text)->extents.y1);
+ cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
color = swfdec_color_apply_transform (background_color, trans);
swfdec_color_set_source (cr, color);
cairo_fill (cr);
@@ -284,20 +285,17 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr,
inval);
y = SWFDEC_GRAPHIC (text)->extents.y0 + 1;
- y_min = MAX (SWFDEC_GRAPHIC (text)->extents.y0, inval->y0);
- y_ma...
2014 Aug 20
26
[Bug 82835] New: GeForce 8800 GS VDPAU h264 decoding hang
...SURFACE_WIDTH y 48 2048
VIDEO_SURFACE_HEIGHT y 48 2048
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y
--
You are receiving this mail because:
You are the assignee for t...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...t_x + rect.x),
+ cairo_rel_move_to (cr, -(layout->offset_x + rect.x),
-(pango_layout_iter_get_baseline (iter_line) / PANGO_SCALE - skipped));
} while (pango_layout_iter_next_line (iter_line));
@@ -951,9 +932,9 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
text->background_color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255);
// text
- if (text->text->text_input != NULL) {
+ if (text->text->input != NULL) {
swfdec_text_field_movie_set_text (text,
- swfdec_as_context_get_string (cx, text->text->text_input),
+ swfdec_as_context_get_string (cx, text...