From: devilhorns Date: Tue, 17 Apr 2012 21:56:03 +0000 (+0000) Subject: Ecore_Evas (wayland_shm): Calculate shm pool size based on output size. X-Git-Tag: accepted/2.0/20130306.224007~39^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34119b458d0ca539f6b640e804fa9d3da2cf3fe5;p=profile%2Fivi%2Fecore.git Ecore_Evas (wayland_shm): Calculate shm pool size based on output size. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@70283 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_evas/ecore_evas_wayland_shm.c b/src/lib/ecore_evas/ecore_evas_wayland_shm.c index 39f7214..c07265c 100644 --- a/src/lib/ecore_evas/ecore_evas_wayland_shm.c +++ b/src/lib/ecore_evas/ecore_evas_wayland_shm.c @@ -2,7 +2,7 @@ # include "config.h" #endif -#define LOGFNS 1 +//#define LOGFNS 1 #ifdef LOGFNS # include @@ -473,8 +473,6 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h) ee->w = w; ee->h = h; - - // ecore_wl_window_damage(ee->engine.wl.win, 0, 0, ee->w, ee->h); /* einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas); */ @@ -554,9 +552,12 @@ _ecore_evas_wl_show(Ecore_Evas *ee) { int w = 0, size = 0; - /* FIXME: This should use output size */ ecore_wl_screen_size_get(&w, NULL); - size = 6 * w * w; + + /* set a default width */ + if (w == 0) w = 1024; + + size = (6 * w * w); pool = _ecore_evas_wl_shm_pool_create(size, &data); ee->engine.wl.pool_size = size;