aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/callbacks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index e5e3921..336e13d 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -651,6 +651,10 @@ void draw_callback(GtkWidget *widget, cairo_t *cr, cam_t *cam)
window = gtk_widget_get_window(widget);
surface = gdk_cairo_surface_create_from_pixbuf(cam->pb, 1, window);
+
+ if (cam->scale != 1.f)
+ cairo_scale(cr, cam->scale, cam->scale);
+
cairo_set_source_surface(cr, surface, 0, 0);
gdk_cairo_rectangle(cr, &rect);
cairo_fill(cr);

Privacy Policy