Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_evas
Modified Files:
Tag: SPLIT
ecore_evas_fb.c
Log Message:
vt switching... fb (and evas) mdouels support vt switching... if you run
ecore_fb stuff form the console... it plays "nice" with the mosue device etc.
now i don't know if it works runing it from somehting that isnt a console...
i need to work on that next... :)
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Attic/ecore_evas_fb.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -3 -r1.1.2.6 -r1.1.2.7
--- ecore_evas_fb.c 13 Feb 2003 01:57:47 -0000 1.1.2.6
+++ ecore_evas_fb.c 27 Feb 2003 07:05:54 -0000 1.1.2.7
@@ -67,6 +67,35 @@
return NULL;
}
+static void
+_ecore_evas_fb_lose(void *data)
+{
+ Ecore_List *l;
+
+ for (l = (Ecore_List *)ecore_evases; l; l = l->next)
+ {
+ Ecore_Evas *ee;
+
+ ee = (Ecore_Evas *)l;
+ ee->visible = 0;
+ }
+}
+
+static void
+_ecore_evas_fb_gain(void *data)
+{
+ Ecore_List *l;
+
+ for (l = (Ecore_List *)ecore_evases; l; l = l->next)
+ {
+ Ecore_Evas *ee;
+
+ ee = (Ecore_Evas *)l;
+ ee->visible = 1;
+ evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
+ }
+}
+
static int
_ecore_evas_event_key_down(int type, void *event, void *data)
{
@@ -144,7 +173,8 @@
Ecore_Evas *ee;
ee = (Ecore_Evas *)l;
- evas_render(ee->evas);
+ if (ee->visible)
+ evas_render(ee->evas);
}
return 1;
}
@@ -398,6 +428,8 @@
rmethod = evas_render_method_lookup("fb");
if (!rmethod) return NULL;
if (!ecore_fb_init(disp_name)) return NULL;
+ ecore_fb_callback_gain_set(_ecore_evas_fb_gain, NULL);
+ ecore_fb_callback_lose_set(_ecore_evas_fb_lose, NULL);
ee = calloc(1, sizeof(Ecore_Evas));
if (!ee) return NULL;
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs