Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/gl_x11
Modified Files:
evas_engine.c evas_engine.h
Log Message:
fix nul update on swap
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_x11/evas_engine.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- evas_engine.c 4 Mar 2007 16:19:32 -0000 1.23
+++ evas_engine.c 4 Mar 2007 17:06:13 -0000 1.24
@@ -256,6 +256,7 @@
/* put back update surface.. in this case just unflag redraw */
// printf("GL: update done.\n");
re->win->draw.redraw = 0;
+ re->win->draw.drew = 1;
}
static void
@@ -264,6 +265,8 @@
Render_Engine *re;
re = (Render_Engine *)data;
+ if (!re->win->draw.drew) return;
+ re->win->draw.drew = 0;
// printf("GL: flush your mush!\n");
eng_window_use(re->win);
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_x11/evas_engine.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evas_engine.h 7 Mar 2006 02:44:16 -0000 1.3
+++ evas_engine.h 4 Mar 2007 17:06:13 -0000 1.4
@@ -19,6 +19,7 @@
Evas_GL_Context *gl_context;
struct {
int redraw : 1;
+ int drew : 1;
int x1, y1, x2, y2;
} draw;
};
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs