Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/engines/software_xcb


Modified Files:
        evas_outbuf.c 


Log Message:


rotation patches for 180 degrees - thankyoooo! :)

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/engines/software_xcb/evas_outbuf.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- evas_outbuf.c       27 Feb 2007 16:08:41 -0000      1.15
+++ evas_outbuf.c       2 Mar 2007 14:51:17 -0000       1.16
@@ -170,7 +170,7 @@
             }
           if (buf->priv.pal)
             {
-               if (buf->rot == 0)
+               if (buf->rot == 0 || buf->rot == 180)
                   conv_func = evas_common_convert_func_get(0,
                                                            buf->w,
                                                            buf->h,
@@ -180,7 +180,7 @@
                                                            buf->priv.mask.b,
                                                            
buf->priv.pal->colors,
                                                            buf->rot);
-               else if (buf->rot == 270)
+               else if (buf->rot == 90 || buf->rot == 270)
                   conv_func = evas_common_convert_func_get(0,
                                                            buf->h,
                                                            buf->w,
@@ -190,20 +190,10 @@
                                                            buf->priv.mask.b,
                                                            
buf->priv.pal->colors,
                                                            buf->rot);
-               else if (buf->rot == 90)
-                  conv_func = evas_common_convert_func_get(0,
-                                                           buf->h,
-                                                           buf->w,
-                                                           
evas_software_xcb_x_output_buffer_depth(xcbob),
-                                                           buf->priv.mask.r,
-                                                           buf->priv.mask.g,
-                                                           buf->priv.mask.b,
-                                                           
buf->priv.pal->colors,
-                                                           buf->rot);
             }
           else
             {
-               if (buf->rot == 0)
+               if (buf->rot == 0 || buf->rot == 180)
                   conv_func = evas_common_convert_func_get(0,
                                                            buf->w,
                                                            buf->h,
@@ -213,17 +203,7 @@
                                                            buf->priv.mask.b,
                                                            PAL_MODE_NONE,
                                                            buf->rot);
-               else if (buf->rot == 270)
-                  conv_func = evas_common_convert_func_get(0,
-                                                           buf->h,
-                                                           buf->w,
-                                                           
evas_software_xcb_x_output_buffer_depth(xcbob),
-                                                           buf->priv.mask.r,
-                                                           buf->priv.mask.g,
-                                                           buf->priv.mask.b,
-                                                           PAL_MODE_NONE,
-                                                           buf->rot);
-               else if (buf->rot == 90)
+               else if (buf->rot == 90 || buf->rot == 270)
                   conv_func = evas_common_convert_func_get(0,
                                                            buf->h,
                                                            buf->w,



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to