Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_pointer.c 


Log Message:


smoother/nicer cursor now.. 

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_pointer.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_pointer.c 25 Nov 2004 03:37:44 -0000      1.1
+++ e_pointer.c 4 Jan 2005 14:07:59 -0000       1.2
@@ -10,7 +10,10 @@
    int *pix;
    
    o = evas_object_image_add(con->bg_evas);
-   evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), 
NULL);
+   if (ecore_x_cursor_color_supported_get())
+     evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), 
NULL);
+   else
+     evas_object_image_file_set(o, e_path_find(path_images, 
"pointer_mono.png"), NULL);
    evas_object_image_size_get(o, &w, &h);
    pix = evas_object_image_data_get(o, 0);
    cur = ecore_x_cursor_new(con->win, pix, w, h, 0, 0);
@@ -34,7 +37,10 @@
    e = ecore_evas_get(ee);
    win = ecore_evas_software_x11_window_get(ee);
    o = evas_object_image_add(e);
-   evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), 
NULL);
+   if (ecore_x_cursor_color_supported_get())
+     evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), 
NULL);
+   else
+     evas_object_image_file_set(o, e_path_find(path_images, 
"pointer_mono.png"), NULL);
    evas_object_image_size_get(o, &w, &h);
    pix = evas_object_image_data_get(o, 0);
    cur = ecore_x_cursor_new(win, pix, w, h, 0, 0);




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to