devilhorns pushed a commit to branch master.

commit 4a40c8298bf344365c0d82143baec8e364a0afef
Author: Chris Michael <[email protected]>
Date:   Thu Jul 11 08:50:25 2013 +0100

    Remove prev_front pixmap from structure
    Use a local variable to hold previous front pixmap while swapping
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/ecore_evas/engines/x/ecore_evas_x.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c 
b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 587dc1a..da8d251 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -90,7 +90,6 @@ struct _Ecore_Evas_Engine_Data_X11 {
    struct 
      {
         unsigned int front, back; // front and back pixmaps (double-buffer)
-        unsigned int prev_front; // record which buffer Was at the front
         Evas_Coord w, h; // store pixmap size (saves X roundtrips)
         int depth; // store depth to save us from fetching engine info 
pre_render
      } pixmap;
@@ -3236,6 +3235,8 @@ _ecore_evas_x_flush_post(void *data, Evas *e EINA_UNUSED, 
void *event_info EINA_
 
    if ((!ee->prop.window) && (edata->pixmap.back))
      {
+        Ecore_X_Pixmap prev;
+
         /* printf("Ecore_Evas Flush Post\n"); */
         /* printf("\tBack Pixmap: %d\n", edata->pixmap.back); */
         /* printf("\tFront Pixmap: %d\n", edata->pixmap.front); */
@@ -3245,13 +3246,13 @@ _ecore_evas_x_flush_post(void *data, Evas *e 
EINA_UNUSED, void *event_info EINA_
          * pre-rendered */
 
         /* record the current front buffer */
-        edata->pixmap.prev_front = edata->pixmap.front;
+        prev = edata->pixmap.front;
 
         /* flip them */
         edata->pixmap.front = edata->pixmap.back;
 
         /* reassign back buffer to be the old front one */
-        edata->pixmap.back = edata->pixmap.prev_front;
+        edata->pixmap.back = prev;
 
         /* update evas drawable */
         if (!strcmp(ee->driver, "software_x11"))

-- 

------------------------------------------------------------------------------
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

Reply via email to