Deprecated cogl_set_source_color4ub() in pick()



Hi,

for some time I've been getting the following warning during libchamplain compilation:

champlain-point.c: In function 'pick':
champlain-point.c:151:3: warning: 'cogl_set_source_color4ub' is deprecated (declared at /usr/include/cogl/cogl/cogl1-context.h:675) [-Wdeprecated-declarations]
   cogl_set_source_color4ub (color->red,
   ^

This is used in the pick() implementation as suggested by the clutter documentation (which should probably be updated):

https://developer.gnome.org/clutter-cookbook/stable/actors-non-rectangular.html

What should be used instead of the deprecated call?

Thanks.

Jiri


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