summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e9e500)
raw | patch | inline | side by side (parent: 1e9e500)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 6 Dec 2011 20:19:58 +0000 (21:19 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 6 Dec 2011 20:19:58 +0000 (21:19 +0100) |
src/gtk-tpdfv.c | patch | blob | history |
diff --git a/src/gtk-tpdfv.c b/src/gtk-tpdfv.c
index cba2e1f2a1c13697e384cb8d1eeab7e62c0547e8..082872bece43aab0cb3416094383cc0f1d765af6 100644 (file)
--- a/src/gtk-tpdfv.c
+++ b/src/gtk-tpdfv.c
cairo_translate(cr, x + pdf->delta_x, y + pdf->delta_y);
+ /* draw empty white page */
+ cairo_save(cr);
+
+ cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 1.0);
+ cairo_rectangle(cr, 0.0, 0.0, page_width, page_height);
+ cairo_fill(cr);
+
+ cairo_restore(cr);
+
poppler_page_render(pdf->current_page, cr);
cairo_destroy(cr);