Commit 81c3b1d0 authored by Ian Martin's avatar Ian Martin Committed by Murray Cumming

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.
parent 059e6b6f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment