stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=85f6b49044d36cb6deb15e768236a4c1f92ea0f6

commit 85f6b49044d36cb6deb15e768236a4c1f92ea0f6
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Fri Nov 13 13:22:16 2015 +0100

    evas buffer engine: use Eina_Bool for one-bit bitfield
    
    Make sure we are using a unsigned var here. Best go with a Eina_Bool 
directly.
    Fix the indent where needed as well.
---
 src/modules/evas/engines/buffer/Evas_Engine_Buffer.h | 16 ++++++++--------
 src/modules/evas/engines/buffer/evas_engine.h        |  4 ++--
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/modules/evas/engines/buffer/Evas_Engine_Buffer.h 
b/src/modules/evas/engines/buffer/Evas_Engine_Buffer.h
index a9cbbfb..0f23758 100644
--- a/src/modules/evas/engines/buffer/Evas_Engine_Buffer.h
+++ b/src/modules/evas/engines/buffer/Evas_Engine_Buffer.h
@@ -18,14 +18,14 @@ struct _Evas_Engine_Info_Buffer
    struct {
       int   depth_type;
 
-      void *dest_buffer;
-      int   dest_buffer_row_bytes;
-
-      char  use_color_key : 1;
-      int   alpha_threshold;
-      int   color_key_r;
-      int   color_key_g;
-      int   color_key_b;
+      void      *dest_buffer;
+      int        dest_buffer_row_bytes;
+
+      Eina_Bool  use_color_key : 1;
+      int        alpha_threshold;
+      int        color_key_r;
+      int        color_key_g;
+      int        color_key_b;
       struct {
         void * (*new_update_region) (int x, int y, int w, int h, int 
*row_bytes);
         void   (*free_update_region) (int x, int y, int w, int h, void *data);
diff --git a/src/modules/evas/engines/buffer/evas_engine.h 
b/src/modules/evas/engines/buffer/evas_engine.h
index bd09d28..6ced36f 100644
--- a/src/modules/evas/engines/buffer/evas_engine.h
+++ b/src/modules/evas/engines/buffer/evas_engine.h
@@ -44,8 +44,8 @@ struct _Outbuf
 
    int                           alpha_level;
    DATA32                        color_key;
-   char                          use_color_key : 1;
-   char                          first_frame : 1;
+   Eina_Bool                     use_color_key : 1;
+   Eina_Bool                     first_frame : 1;
 
    struct {
       void * (*new_update_region) (int x, int y, int w, int h, int *row_bytes);

-- 


Reply via email to