diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/background-image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/background-image.c b/common/background-image.c index f3d2551e..5ede55e3 100644 --- a/common/background-image.c +++ b/common/background-image.c | |||
@@ -58,6 +58,7 @@ void render_background_image(cairo_t *cairo, cairo_surface_t *image, | |||
58 | double width = cairo_image_surface_get_width(image); | 58 | double width = cairo_image_surface_get_width(image); |
59 | double height = cairo_image_surface_get_height(image); | 59 | double height = cairo_image_surface_get_height(image); |
60 | 60 | ||
61 | cairo_save(cairo); | ||
61 | switch (mode) { | 62 | switch (mode) { |
62 | case BACKGROUND_MODE_STRETCH: | 63 | case BACKGROUND_MODE_STRETCH: |
63 | cairo_scale(cairo, | 64 | cairo_scale(cairo, |
@@ -116,4 +117,5 @@ void render_background_image(cairo_t *cairo, cairo_surface_t *image, | |||
116 | break; | 117 | break; |
117 | } | 118 | } |
118 | cairo_paint(cairo); | 119 | cairo_paint(cairo); |
120 | cairo_restore(cairo); | ||
119 | } | 121 | } |