1From 9426c72bfe324469e7b55dc1fb8f51c734bf97c4 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Thu, 8 Dec 2022 10:10:20 +0800
4Subject: [PATCH 91/93] HACK: vnc: Compat with new aml and weston 11.0.0
5
6TODO: Remove it when upgrade to newer weston version.
7
8Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
9---
10 libweston/backend-vnc/vnc.c | 5 +----
11 1 file changed, 1 insertion(+), 4 deletions(-)
12
13diff --git a/libweston/backend-vnc/vnc.c b/libweston/backend-vnc/vnc.c
14index 6cb05d7..4861521 100644
15--- a/libweston/backend-vnc/vnc.c
16+++ b/libweston/backend-vnc/vnc.c
17@@ -42,6 +42,7 @@
18 #include <unistd.h>
19 #include <xkbcommon/xkbcommon-keysyms.h>
20 #include <xkbcommon/xkbcommon.h>
21+#define AML_UNSTABLE_API 1
22 #include <aml.h>
23 #include <neatvnc.h>
24 #include <drm_fourcc.h>
25@@ -604,10 +605,6 @@ vnc_output_enable(struct weston_output *base)
26 	struct wl_event_loop *loop;
27 	const struct pixman_renderer_output_options options = {
28 		.use_shadow = true,
29-		.fb_size = {
30-			.width = output->base.width,
31-			.height = output->base.height,
32-		},
33 	};
34
35 	assert(output);
36--
372.20.1
38
39