diff options
author | Jonathan Blandford <jrb@redhat.com> | 2005-05-11 05:20:51 (GMT) |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2005-05-11 05:20:51 (GMT) |
commit | f0f15671240dd6e99f22e91386bd384246f2d4cd (patch) | |
tree | a16c9c14ffadfd246dcb06fb477a4c60af7cf6a4 /backend | |
parent | 7a1449773ef2f1619c17a7ec8873562afaa6cd05 (diff) |
make page size calculation consistent and set it to (int)( width * scale +
Wed May 11 01:18:29 2005 Jonathan Blandford <jrb@redhat.com>
* 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.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/ev-page-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index c66a1a4..6302c42 100644 --- a/backend/ev-page-cache.c +++ b/backend/ev-page-cache.c @@ -308,9 +308,9 @@ ev_page_cache_get_size (EvPageCache *page_cache, } if (width) - *width = (*width) * scale; + *width = (int) ((*width) * scale + 0.5); if (width) - *height = (*height) * scale; + *height = (int) ((*height) * scale + 0.5); } |