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);
if (!(output = data)) return 1;
- printf("Output Frame\n");
-
/* start the repaint loop */
_output_cb_repaint_start(&output->base);
/* 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;
}
E_Output_X11 *xoutput;
E_Compositor *comp;
- printf("Output Repaint Shm\n");
-
xoutput = (E_Output_X11 *)output;
comp = output->compositor;
ev = event;
- printf("Output Window Damage\n");
-
EINA_LIST_FOREACH(_e_x11_comp->base.outputs, l, output)
{
if (ev->win == output->win)
ev = event;
- printf("Output Window Destroy\n");
-
/* loop the existing outputs */
EINA_LIST_FOREACH(_e_x11_comp->base.outputs, l, output)
{