diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-01-03 19:35:31 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-01-03 20:14:13 (GMT) |
commit | 56563e01d4677aa3cdb08ee1ca67f5f4d298cc53 (patch) | |
tree | a1796c02ec1743f9436bee751a349700c7a31bc1 /libview | |
parent | e288b2cb68ac2645bfee992566bd8f1974388fb1 (diff) |
[libview] Do not scale when drawing animations in presentation mode
Scale never changes in presentation mode, if current page is rendered is
always at the right size.
Diffstat (limited to 'libview')
-rw-r--r-- | libview/ev-transition-animation.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libview/ev-transition-animation.c b/libview/ev-transition-animation.c index 7e33023..9a12137 100644 --- a/libview/ev-transition-animation.c +++ b/libview/ev-transition-animation.c @@ -189,23 +189,9 @@ paint_surface (cairo_t *cr, gdouble alpha, GdkRectangle page_area) { - gint width, height; - - gdk_cairo_rectangle (cr, &page_area); - cairo_clip (cr); - - width = cairo_image_surface_get_width (surface); - height = cairo_image_surface_get_height (surface); - cairo_save (cr); - if (width != page_area.width || height != page_area.height) { - cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_FAST); - cairo_scale (cr, - (gdouble) page_area.width / width, - (gdouble) page_area.height / height); - } - + gdk_cairo_rectangle (cr, &page_area); cairo_surface_set_device_offset (surface, x_offset, y_offset); cairo_set_source_surface (cr, surface, 0, 0); |