path: root/src/callbacks.h
diff options
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 20:37:01 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-05 17:33:35 (GMT)
commit0715aaefb72e27e5e1a811386236ce7da8e5e47e (patch)
tree1e657189a615d268480229a47632921b3c74eb68 /src/callbacks.h
parenta64c94d43fe1044d76d003254eaa5e843cc2ee51 (diff)
add support for scaling the image with cairo
It is easy to scale the image with cairo. Add support for it. For now, it reserves about 2/3 of the screen for the image stream display, keeping 1/3 reserved for the interface. It probably makes sense to add ways for the user to change the scale. It should be noticed that the snapshots won't be affected for the scale; will keep using the image resolution. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/callbacks.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/callbacks.h b/src/callbacks.h
index 30e15b2..3b6007c 100644
--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -69,6 +69,7 @@ void wb_change(GtkHScale *, cam_t *);
gboolean on_drawingarea_expose_event(GtkWidget *, GdkEventExpose *,
cam_t *);
void update_tooltip(cam_t *cam);
+void set_image_scale(cam_t *cam);

Privacy Policy