summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/cairo-render-context.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-06-22 10:07:58 +0000
committerJon A. Cruz <jon@joncruz.org>2011-06-22 10:07:58 +0000
commit8640e3a8755e772cc7982a9d6f8a47c6ee0dae00 (patch)
tree2f9cdb1b9e13dc49a810fdfca4eb575610a948cb /src/extension/internal/cairo-render-context.cpp
parentRevision 10333 introduced dependency on gtk version 2.24 which is currently n... (diff)
downloadinkscape-8640e3a8755e772cc7982a9d6f8a47c6ee0dae00.tar.gz
inkscape-8640e3a8755e772cc7982a9d6f8a47c6ee0dae00.zip
Warning cleanup.
(bzr r10339)
Diffstat (limited to 'src/extension/internal/cairo-render-context.cpp')
-rw-r--r--src/extension/internal/cairo-render-context.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp
index b9c2a4488..1c1dac028 100644
--- a/src/extension/internal/cairo-render-context.cpp
+++ b/src/extension/internal/cairo-render-context.cpp
@@ -1419,14 +1419,14 @@ CairoRenderContext::renderPathVector(Geom::PathVector const & pathv, SPStyle con
return true;
}
-bool
-CairoRenderContext::renderImage(guchar *px, unsigned int w, unsigned int h, unsigned int rs,
- Geom::Affine const *image_transform, SPStyle const *style)
+bool CairoRenderContext::renderImage(guchar *px, unsigned int w, unsigned int h, unsigned int rs,
+ Geom::Affine const *image_transform, SPStyle const * /*style*/)
{
g_assert( _is_valid );
- if (_render_mode == RENDER_MODE_CLIP)
+ if (_render_mode == RENDER_MODE_CLIP) {
return true;
+ }
guchar* px_rgba = NULL;
guint64 size = 4L * (guint64)w * (guint64)h;
@@ -1514,8 +1514,8 @@ CairoRenderContext::renderImage(guchar *px, unsigned int w, unsigned int h, unsi
#define GLYPH_ARRAY_SIZE 64
-unsigned int
-CairoRenderContext::_showGlyphs(cairo_t *cr, PangoFont *font, std::vector<CairoGlyphInfo> const &glyphtext, bool path)
+// TODO investigate why the font is being ignored:
+unsigned int CairoRenderContext::_showGlyphs(cairo_t *cr, PangoFont * /*font*/, std::vector<CairoGlyphInfo> const &glyphtext, bool path)
{
cairo_glyph_t glyph_array[GLYPH_ARRAY_SIZE];
cairo_glyph_t *glyphs = glyph_array;
@@ -1551,8 +1551,9 @@ CairoRenderContext::_showGlyphs(cairo_t *cr, PangoFont *font, std::vector<CairoG
cairo_show_glyphs(cr, glyphs, num_glyphs - num_invalid_glyphs);
}
- if (num_glyphs > GLYPH_ARRAY_SIZE)
+ if (num_glyphs > GLYPH_ARRAY_SIZE) {
g_free(glyphs);
+ }
return num_glyphs - num_invalid_glyphs;
}