discomfitor pushed a commit to branch master.
commit 1cff963a02249cc6f4fb829b6f03c21d54a71f71
Author: Mike Blumenkrantz <[email protected]>
Date: Wed Jul 24 07:05:41 2013 +0100
asdf
---
src/bin/e_comp.c | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 8e8aec5..05c7d63 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -754,9 +754,14 @@ _e_comp_win_update(E_Comp_Win *cw)
{
unsigned int *pix;
+ pix = ecore_x_image_data_get(cw->xim, NULL, NULL, NULL);
+ evas_object_image_data_set(cw->obj, pix);
evas_object_image_size_set(cw->obj, cw->pw, cw->ph);
EINA_LIST_FOREACH(cw->obj_mirror, l, o)
- evas_object_image_size_set(o, cw->pw, cw->ph);
+ {
+ evas_object_image_data_set(o, pix);
+ evas_object_image_size_set(o, cw->pw, cw->ph);
+ }
e_comp_render_update_clear(cw->up);
for (i = 0; r[i].w > 0; i++)
@@ -773,19 +778,18 @@ _e_comp_win_update(E_Comp_Win *cw)
}
else
{
- DBG("UPDATE [0x%x] %i %i %ix%i", cw->win, x,
y, w, h);
+ // why do we neeed these 2? this smells wrong
+ pix = ecore_x_image_data_get(cw->xim, NULL,
NULL, NULL);
+ DBG("UPDATE [0x%x] %i %i %ix%i -- pix = %p",
cw->win, x, y, w, h, pix);
+ evas_object_image_data_set(cw->obj, pix);
evas_object_image_data_update_add(cw->obj, x,
y, w, h);
EINA_LIST_FOREACH(cw->obj_mirror, l, o)
- evas_object_image_data_update_add(o, x, y,
w, h);
+ {
+ evas_object_image_data_set(o, pix);
+ evas_object_image_data_update_add(o, x,
y, w, h);
+ }
}
}
- if (!cw->update)
- {
- pix = ecore_x_image_data_get(cw->xim, NULL, NULL,
NULL);
- evas_object_image_data_set(cw->obj, pix);
- EINA_LIST_FOREACH(cw->obj_mirror, l, o)
- evas_object_image_data_set(o, pix);
- }
}
else
{
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk