]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/gtk-egl: Render guest content with padding in fixed-scale mode
authorWeifeng Liu <weifeng.liu.z@gmail.com>
Sun, 11 May 2025 07:33:19 +0000 (15:33 +0800)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 May 2025 15:04:09 +0000 (17:04 +0200)
commitf05e1a93f48729b568fdf86a12d56ee142cee5e1
treec7e8dbc79b70b26d3da2ce03f4092dcd93c0e838
parentfdc09b028fde9d2ec70418735f354b51c8295d0f
ui/gtk-egl: Render guest content with padding in fixed-scale mode

Scaling was not respected when rendering frames in gtk-egl.c (used if
gl=on and X11 mode). To fix this, add fields x and y to struct egl_fb
for x offset and y offset so we can add padding to window.

Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com>
Message-ID: <20250511073337.876650-10-weifeng.liu.z@gmail.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
include/ui/egl-helpers.h
ui/egl-helpers.c
ui/gtk-egl.c
ui/sdl2-gl.c