From f0f15671240dd6e99f22e91386bd384246f2d4cd Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Wed, 11 May 2005 05:20:51 +0000 Subject: make page size calculation consistent and set it to (int)( width * scale + Wed May 11 01:18:29 2005 Jonathan Blandford * pdf/ev-poppler.cc: * backend/ev-page-cache.c: make page size calculation consistent and set it to (int)( width * scale + 0.5). This makes the weird line going through the middle of the page go away. * shell/ev-view.c: move painting the background page after checking the expose area covers us. --- (limited to 'pdf') diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 7b55b08..3261355 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -254,8 +254,8 @@ pdf_document_render_pixbuf (EvDocument *document, page); poppler_page_get_size (poppler_page, &width_points, &height_points); - width = (int) ceil (width_points * scale); - height = (int) ceil (height_points * scale); + width = (int) ((width_points * scale) + 0.5); + height = (int) ((height_points * scale) + 0.5); pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, -- cgit v0.9.1