aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland/weston/0005-ENGR00321030-Change-GAL2D-compositor-to-be-default-i.patch
blob: 89d6215a443f9d6195e3880443d79a274f84a8af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From e58ecd66cea732aab8f6b5274d72868922e92c5f Mon Sep 17 00:00:00 2001
From: Yong Gan <b45748@freescale.com>
Date: Fri, 4 Jul 2014 09:57:11 +0800
Subject: [PATCH] ENGR00321030 Change GAL2D compositor to be default in
 SoloLite.
Organization: O.S. Systems Software LTDA.

Change GAL2D compositor to be default When EGL is not enabled.

Date: Jul 03, 2014
Signed-off-by Yong Gan <yong.gan@freescale.com>

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 src/compositor-fbdev.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c
index b27d199..bdc6ec9 100644
--- a/src/compositor-fbdev.c
+++ b/src/compositor-fbdev.c
@@ -1060,8 +1060,13 @@ backend_init(struct wl_display *display, int *argc, char *argv[],
 	struct fbdev_parameters param = {
 		.tty = 0, /* default to current tty */
 		.device = "/dev/fb0", /* default frame buffer */
+#ifdef ENABLE_EGL
 		.use_gl = 1,
 		.use_gal2d = 0,
+#else
+		.use_gl = 0,
+		.use_gal2d = 1,
+#endif
 	};
 
 	const struct weston_option fbdev_options[] = {
-- 
2.1.4