From 94400fa53f81c9f58ad88cf3f3e7ea89ec423d39 Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Mon, 20 Feb 2023 18:56:05 +0100 Subject: ui/gtk: fix passing y0_top parameter to scanout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dmabuf->y0_top flag is passed to .dpy_gl_scanout_dmabuf(), however in the gtk ui both implementations dropped it when doing the next scanout_texture call. Fixes flipped linux console using vhost-user-gpu with the gtk ui display. Signed-off-by: Erico Nunes Reviewed-by: Marc-André Lureau Message-Id: <20230220175605.43759-1-ernunes@redhat.com> --- ui/gtk-gl-area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/gtk-gl-area.c') diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c index 7696df1..c384a15 100644 --- a/ui/gtk-gl-area.c +++ b/ui/gtk-gl-area.c @@ -298,7 +298,7 @@ void gd_gl_area_scanout_dmabuf(DisplayChangeListener *dcl, } gd_gl_area_scanout_texture(dcl, dmabuf->texture, - false, dmabuf->width, dmabuf->height, + dmabuf->y0_top, dmabuf->width, dmabuf->height, 0, 0, dmabuf->width, dmabuf->height); if (dmabuf->allow_fences) { -- cgit v1.1