Commit 331c6b93 authored by Hiroyuki Ikezoe's avatar Hiroyuki Ikezoe

set proper mode line and fix indent.

parent 6aa3ce5d
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4 ts=4 expandtab: */
/*
rsvg-defs.c: Manage SVG defs and references.
......
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4 ts=4 expandtab: */
/*
rsvg-defs.h : SVG defs utilities
......@@ -40,7 +41,7 @@ void rsvg_defs_set_base_uri (RsvgDefs * self, gchar * base_uri);
void rsvg_defs_add_resolver (RsvgDefs * defs, RsvgNode ** tochange, const gchar * name);
void rsvg_defs_resolve_all (RsvgDefs * defs);
void rsvg_defs_register_name (RsvgDefs * defs, const char *name, RsvgNode * val);
void rsvg_defs_register_memory (RsvgDefs * defs, RsvgNode * val);
void rsvg_defs_register_memory (RsvgDefs * defs, RsvgNode * val);
G_END_DECLS
#endif
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4 ts=4 expandtab: */
/*
rsvg-filter.c: Provides filters
......
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4 ts=4 expandtab: */
/*
rsvg-mask.h : Provides Masks
......
/* vim: set sw=4 sts=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set sw=4 sts=4 ts=4 expandtab: */
/*
rsvg.c: SAX-based renderer for SVG files into a GdkPixbuf.
......@@ -98,19 +99,19 @@ rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id)
cairo_surface_destroy (surface);
if (rsvg_handle_render_cairo_sub (handle, cr, id)) {
rsvg_cairo_to_pixbuf (pixels, rowstride, dimensions.height);
output = gdk_pixbuf_new_from_data (pixels,
GDK_COLORSPACE_RGB,
TRUE,
8,
dimensions.width,
dimensions.height,
rowstride,
(GdkPixbufDestroyNotify) rsvg_pixmap_destroy, NULL);
rsvg_cairo_to_pixbuf (pixels, rowstride, dimensions.height);
output = gdk_pixbuf_new_from_data (pixels,
GDK_COLORSPACE_RGB,
TRUE,
8,
dimensions.width,
dimensions.height,
rowstride,
(GdkPixbufDestroyNotify) rsvg_pixmap_destroy, NULL);
} else {
g_free (pixels);
output = NULL;
g_free (pixels);
output = NULL;
}
cairo_destroy (cr);
......
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