Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : proto

Dir     : e17/proto/esmart/src/trans


Modified Files:
        esmart_trans.c 


Log Message:
A couple minor code changes. Set imlib2 contexts each time they will be used
to guarantee they have current values. Mark the imlib2 images to be decached,
since the data in them will most likely need to be updated.

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/trans/esmart_trans.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- esmart_trans.c      10 Mar 2004 17:39:23 -0000      1.10
+++ esmart_trans.c      9 Apr 2004 17:44:58 -0000       1.11
@@ -64,6 +64,10 @@
    else
       root = 0;
 
+   imlib_context_set_display(ecore_x_display_get());
+   
imlib_context_set_visual(DefaultVisual(ecore_x_display_get(),DefaultScreen(ecore_x_display_get())));
+   
imlib_context_set_colormap(DefaultColormap(ecore_x_display_get(),DefaultScreen(ecore_x_display_get())));
+
    /* Attempt to find the current virtual desktop using NetWM properties */
    if (ecore_x_window_prop_property_get(root, x_current_desktop, 
                                         x_cardinal,
@@ -147,7 +151,7 @@
                                                   sx - dx, sy - dy, pw, ph);
                   
                imlib_context_set_image(im);
-               imlib_free_image();
+               imlib_free_image_and_decache();
                imlib_context_set_image(dest);
             }
 
@@ -156,7 +160,7 @@
             evas_object_image_alpha_set(new, 0);
             evas_object_image_size_set(new, w, h);
             evas_object_image_data_copy_set(new, 
imlib_image_get_data_for_reading_only());
-            imlib_free_image();
+            imlib_free_image_and_decache();
 
             evas_object_image_fill_set(new, 0, 0, w, h);
             evas_object_resize(new, w, h);
@@ -230,11 +234,7 @@
 esmart_trans_x11_new(Evas *e)
 {
   Evas_Object *x11_trans_object;
-  
-  imlib_context_set_display(ecore_x_display_get());
-  
imlib_context_set_visual(DefaultVisual(ecore_x_display_get(),DefaultScreen(ecore_x_display_get())));
-  
imlib_context_set_colormap(DefaultColormap(ecore_x_display_get(),DefaultScreen(ecore_x_display_get())));
-  
+
   x11_trans_object = evas_object_smart_add(e,
                                _esmart_trans_x11_smart_get());
   return x11_trans_object;




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to