summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-06-24 21:37:50 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-06-24 21:37:50 +0000
commit8acc6e620a08e5f660832f2681d24ed7085cd885 (patch)
tree01871859fe145a76cf3742f0cea311682bf095d9 /src/display/sp-canvas.cpp
parentadded unicode block (codepoint ranges) lookups (diff)
downloadinkscape-8acc6e620a08e5f660832f2681d24ed7085cd885.tar.gz
inkscape-8acc6e620a08e5f660832f2681d24ed7085cd885.zip
whitespace
(bzr r6053)
Diffstat (limited to 'src/display/sp-canvas.cpp')
-rw-r--r--src/display/sp-canvas.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index 4ac8df5a2..104172b63 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -1641,18 +1641,18 @@ sp_canvas_paint_single_buffer (SPCanvas *canvas, int x0, int y0, int x1, int y1,
#ifdef CANVAS_OUTPUT_VIA_CAIRO
- buf.cst = cairo_image_surface_create_for_data (
- buf.buf,
- CAIRO_FORMAT_ARGB32, // unpacked, i.e. 32 bits! one byte is unused
- x1 - x0, y1 - y0,
- buf.buf_rowstride
- );
- cairo_t *window_ct = gdk_cairo_create(SP_CANVAS_WINDOW (canvas));
- cairo_set_source_surface (window_ct, buf.cst, x0 - canvas->x0, y0 - canvas->y0);
- cairo_paint (window_ct);
- cairo_destroy (window_ct);
- cairo_surface_finish (buf.cst);
- cairo_surface_destroy (buf.cst);
+ buf.cst = cairo_image_surface_create_for_data (
+ buf.buf,
+ CAIRO_FORMAT_ARGB32, // unpacked, i.e. 32 bits! one byte is unused
+ x1 - x0, y1 - y0,
+ buf.buf_rowstride
+ );
+ cairo_t *window_ct = gdk_cairo_create(SP_CANVAS_WINDOW (canvas));
+ cairo_set_source_surface (window_ct, buf.cst, x0 - canvas->x0, y0 - canvas->y0);
+ cairo_paint (window_ct);
+ cairo_destroy (window_ct);
+ cairo_surface_finish (buf.cst);
+ cairo_surface_destroy (buf.cst);
#else
@@ -1661,9 +1661,9 @@ sp_canvas_paint_single_buffer (SPCanvas *canvas, int x0, int y0, int x1, int y1,
NRPixBlock b4;
nr_pixblock_setup_extern (&b4, NR_PIXBLOCK_MODE_R8G8B8A8P, x0, y0, x1, y1,
- buf.buf,
- buf.buf_rowstride,
- FALSE, FALSE);
+ buf.buf,
+ buf.buf_rowstride,
+ FALSE, FALSE);
// this does the 32->24 squishing, using an assembler routine:
nr_blit_pixblock_pixblock (&b3, &b4);
@@ -1679,9 +1679,7 @@ sp_canvas_paint_single_buffer (SPCanvas *canvas, int x0, int y0, int x1, int y1,
nr_pixblock_release (&b3);
nr_pixblock_release (&b4);
-
#endif
-
}
cairo_surface_t *cst = cairo_get_target(buf.ct);