1From e0c46c2b8db6ec0b377cc82a4478f1a9ce6658b3 Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Mon, 4 Jul 2022 11:43:03 +0800 4Subject: [PATCH 02/10] wl_wl: Force maxium screen 5 6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 7--- 8 src/modules/wl_wl/e_mod_main.c | 9 ++++++--- 9 1 file changed, 6 insertions(+), 3 deletions(-) 10 11diff --git a/src/modules/wl_wl/e_mod_main.c b/src/modules/wl_wl/e_mod_main.c 12index 5c320d70b..31364dadf 100644 13--- a/src/modules/wl_wl/e_mod_main.c 14+++ b/src/modules/wl_wl/e_mod_main.c 15@@ -17,9 +17,9 @@ _cb_sync_done(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) 16 ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h); 17 if ((w < 1) || (h < 1)) return ECORE_CALLBACK_PASS_ON; 18 19- e_comp_canvas_resize(w * 2 / 3, h * 2 / 3); 20+ e_comp_canvas_resize(w, h); 21 e_comp_wl_output_init(NULL, NULL, NULL, 22- 0, 0, w * 2 / 3, h * 2 / 3, 23+ 0, 0, w, h, 24 0, 0, 0, 0, 0, 0); 25 26 it = ecore_wl2_display_inputs_get(ecore_wl2_window_display_get(ecore_evas_wayland2_window_get(e_comp->ee))); 27@@ -38,6 +38,8 @@ _cb_sync_done(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) 28 E_API void * 29 e_modapi_init(E_Module *m) 30 { 31+ int w = 0, h = 0; 32+ 33 printf("LOAD WL_WL MODULE\n"); 34 35 if (e_comp_config_get()->engine == E_COMP_ENGINE_GL) 36@@ -71,7 +73,8 @@ e_modapi_init(E_Module *m) 37 ecore_event_handler_add(ECORE_WL2_EVENT_SYNC_DONE, _cb_sync_done, NULL); 38 39 if (!e_comp_wl_init()) return NULL; 40- if (!e_comp_canvas_init(1024, 768)) return NULL; 41+ ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h); 42+ if (!e_comp_canvas_init(w, h)) return NULL; 43 44 e_comp_wl_input_pointer_enabled_set(EINA_TRUE); 45 e_comp_wl_input_keyboard_enabled_set(EINA_TRUE); 46-- 472.20.1 48 49