diff options
author | Chris Michael <cp.michael@samsung.com> | 2013-06-11 14:55:38 +0100 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2013-06-11 14:55:38 +0100 |
commit | 245cc2164a73015ee84144669ec6ae3a899102e9 (patch) | |
tree | 73277ed656de959480055d5df10b2ccfcd6aadb4 | |
parent | 49ba7f21573bc85a635c5e671ed4751e3651a99f (diff) | |
download | enlightenment-245cc2164a73015ee84144669ec6ae3a899102e9.tar.gz |
Remove debug messages.
Fix creating output image with proper depth
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/modules/wl_x11/e_mod_main.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/modules/wl_x11/e_mod_main.c b/src/modules/wl_x11/e_mod_main.c index 2f34c9610b..f17b66046f 100644 --- a/src/modules/wl_x11/e_mod_main.c +++ b/src/modules/wl_x11/e_mod_main.c @@ -211,16 +211,16 @@ _output_init(E_Compositor_X11 *xcomp) static Eina_Bool _output_init_shm(E_Compositor_X11 *xcomp, E_Output_X11 *output, Evas_Coord w, Evas_Coord h) { - int bpp = 0; - unsigned int mask; + int bpp = 0, depth = 0; unsigned int *data; Ecore_X_Visual vis; vis = ecore_x_default_visual_get(xcomp->display, ecore_x_default_screen_get()); - output->buffer = - ecore_x_image_new(w, h, vis, ecore_x_window_depth_get(output->win)); + depth = ecore_x_window_depth_get(output->win); + + output->buffer = ecore_x_image_new(w, h, vis, depth); data = ecore_x_image_data_get(output->buffer, NULL, NULL, &bpp); @@ -243,8 +243,6 @@ _output_cb_frame(void *data) if (!(output = data)) return 1; - printf("Output Frame\n"); - /* start the repaint loop */ _output_cb_repaint_start(&output->base); @@ -259,12 +257,9 @@ _output_cb_repaint_start(E_Output *output) /* check for valid output */ if (!output) return; - printf("Output Repaint Start\n"); - /* if a repaint is needed, do it */ if (output->repaint.needed) { - printf("\tCalling Output Repaint\n"); e_output_repaint(output, ecore_loop_time_get()); return; } @@ -285,8 +280,6 @@ _output_cb_repaint_shm(E_Output *output, pixman_region32_t *damage) E_Output_X11 *xoutput; E_Compositor *comp; - printf("Output Repaint Shm\n"); - xoutput = (E_Output_X11 *)output; comp = output->compositor; @@ -336,8 +329,6 @@ _output_cb_window_damage(void *data, int type EINA_UNUSED, void *event) ev = event; - printf("Output Window Damage\n"); - EINA_LIST_FOREACH(_e_x11_comp->base.outputs, l, output) { if (ev->win == output->win) @@ -359,8 +350,6 @@ _output_cb_window_destroy(void *data EINA_UNUSED, int type EINA_UNUSED, void *ev ev = event; - printf("Output Window Destroy\n"); - /* loop the existing outputs */ EINA_LIST_FOREACH(_e_x11_comp->base.outputs, l, output) { |