diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-07-04 00:56:02 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-07-04 00:56:02 +0000 |
| commit | e83b5a202a9e028e3407123cddafa06510756b66 (patch) | |
| tree | a88567777b48211e823b92d397a7b104925026aa /src/display/sp-canvas.cpp | |
| parent | Fix PNG export (diff) | |
| download | inkscape-e83b5a202a9e028e3407123cddafa06510756b66.tar.gz inkscape-e83b5a202a9e028e3407123cddafa06510756b66.zip | |
Remove some cruft
(bzr r9508.1.10)
Diffstat (limited to 'src/display/sp-canvas.cpp')
| -rw-r--r-- | src/display/sp-canvas.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index 571b573e1..4c74af6d9 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -1630,17 +1630,12 @@ sp_canvas_paint_single_buffer (SPCanvas *canvas, int x0, int y0, int x1, int y1, { GtkWidget *widget = GTK_WIDGET (canvas); - SPCanvasBuf buf; - if (canvas->rendermode != Inkscape::RENDERMODE_OUTLINE) { - buf.buf = nr_pixelstore_256K_new (FALSE, 0); - } else { - buf.buf = nr_pixelstore_1M_new (FALSE, 0); - } - // Mark the region clean sp_canvas_mark_rect(canvas, x0, y0, x1, y1, 0); - buf.buf_rowstride = sw * 4; + SPCanvasBuf buf; + buf.buf = NULL; + buf.buf_rowstride = 0; buf.rect.x0 = x0; buf.rect.y0 = y0; buf.rect.x1 = x1; |
