Commit 6db4a82b authored by Øyvind Kolås's avatar Øyvind Kolås

simplified babl_format since we now depend on a more modern babl.

* operations/render/text.c: (process): simplified babl_format since
we now depend on a more modern babl.

svn path=/trunk/; revision=1414
parent 6b4733f0
2007-03-08 Øyvind Kolås <pippin@gimp.org>
* operations/render/text.c: (process): simplified babl_format since
we now depend on a more modern babl.
2007-03-08 Øyvind Kolås <oeyvindk@hig.no>
* operations/workshop/hstack.c: Added a composer operation whose
......
......@@ -157,17 +157,7 @@ process (GeglOperation *operation,
result = gegl_operation_result_rect (operation, context_id);
output = g_object_new (GEGL_TYPE_BUFFER,
"format", /* FIXME: when babl requirements is
bumped to 0.0.14 the name should
be enough */
babl_format_new ("name", "B'aG'aR'aA u8",
babl_model ("R'aG'aB'aA"),
babl_type ("u8"),
babl_component ("B'a"),
babl_component ("G'a"),
babl_component ("R'a"),
babl_component ("A"),
NULL),
"format", babl_format ("B'aG'aR'aA u8"),
"x", result->x,
"y", result->y,
"width", result->width ,
......@@ -185,17 +175,7 @@ process (GeglOperation *operation,
cairo_translate (cr, -result->x, -result->y);
text_layout_text (self, cr, 0, NULL, NULL);
gegl_buffer_set (output,
NULL,
babl_format_new ("name", "B'aG'aR'aA u8",
babl_model ("R'aG'aB'aA"),
babl_type ("u8"),
babl_component ("B'a"),
babl_component ("G'a"),
babl_component ("R'a"),
babl_component ("A"),
NULL),
data);
gegl_buffer_set (output, NULL, babl_format ("B'aG'aR'aA u8"), data);
cairo_destroy (cr);
cairo_surface_destroy (surface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment