1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00
conky/lua/libcairo.patch
Pavel Labath c80deb2d69 Fix "wrong type of arguments for cairo_set_dash", sf.net #3014648
I am not particularly proud of this solution. If you have a better one, feel free to implement
it.
2010-06-13 18:57:07 +02:00

17 lines
584 B
Diff

--- lua/libcairo.c~ 2010-06-11 23:14:43.000000000 +0200
+++ lua/libcairo.c 2010-06-12 10:47:51.000000000 +0200
@@ -1452,12 +1452,12 @@
#endif
{
struct _cairo* cr = (( struct _cairo*) tolua_tousertype(tolua_S,1,0));
+ int num_dashes = ((int) tolua_tonumber(tolua_S,3,0));
#ifdef __cplusplus
double* dashes = Mtolua_new_dim(double, num_dashes);
#else
double* dashes = (double*) malloc((num_dashes)*sizeof(double));
#endif
- int num_dashes = ((int) tolua_tonumber(tolua_S,3,0));
double offset = ((double) tolua_tonumber(tolua_S,4,0));
{
#ifndef TOLUA_RELEASE