[cluttermm/cluttermm-1-24] Image: set() methods separated into set() and set_data().



commit 81c3b1d0f2bb275f306afd2c4a071416740960ea
Author: Ian Martin <martin_id vodafone co nz>
Date:   Thu Feb 11 00:42:06 2016 +1300

    Image: set() methods separated into set() and set_data().
    
    Because the compiler is unable to differentiate Glib::Bytes& from guint8* datasets.
    Prevents segfault on loading an image.

 clutter/src/image.hg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/src/image.hg b/clutter/src/image.hg
index 2777f39..d55aad3 100644
--- a/clutter/src/image.hg
+++ b/clutter/src/image.hg
@@ -45,7 +45,7 @@ public:
   _WRAP_CREATE()
   //_WRAP_METHOD(CoglTexture* get_texture(), clutter_image_get_texture)
 
-  _WRAP_METHOD(bool set(const guint8* data, CoglPixelFormat pixel_format, guint width, guint height, guint 
row_stride), clutter_image_set_data, errthrow)
+  _WRAP_METHOD(bool set_data(const guint8* data, CoglPixelFormat pixel_format, guint width, guint height, 
guint row_stride), clutter_image_set_data, errthrow)
 
   _WRAP_METHOD(bool set(const Glib::Bytes& data, CoglPixelFormat pixel_format, guint width, guint height, 
guint row_stride), clutter_image_set_bytes, errthrow)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]