summary refs log tree commit diff stats
path: root/include/ui/gtk.h
diff options
context:
space:
mode:
authorWeifeng Liu <weifeng.liu.z@gmail.com>2025-05-11 15:33:13 +0800
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-05-24 17:03:07 +0200
commita19665448156f17b52b7f33e7960d57efcfca067 (patch)
tree7c254f4d58c6977fb7c3e5ab93303f31fe97b117 /include/ui/gtk.h
parent3a6b314409b42fe7c46c2bd80cfc2a6744d414fe (diff)
downloadfocaccia-qemu-a19665448156f17b52b7f33e7960d57efcfca067.tar.gz
focaccia-qemu-a19665448156f17b52b7f33e7960d57efcfca067.zip
gtk/ui: Introduce helper gd_update_scale
The code snippet updating scale_x/scale_y is general and will be used in
next patch. Make it a function.

Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com>
Message-ID: <20250511073337.876650-4-weifeng.liu.z@gmail.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'include/ui/gtk.h')
-rw-r--r--include/ui/gtk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/gtk.h b/include/ui/gtk.h
index aa3d637029..d3944046db 100644
--- a/include/ui/gtk.h
+++ b/include/ui/gtk.h
@@ -224,4 +224,6 @@ int gd_gl_area_make_current(DisplayGLCtx *dgc,
 /* gtk-clipboard.c */
 void gd_clipboard_init(GtkDisplayState *gd);
 
+void gd_update_scale(VirtualConsole *vc, int ww, int wh, int fbw, int fbh);
+
 #endif /* UI_GTK_H */