Ticket #24041: patch-src-texture.diff
File patch-src-texture.diff, 1.2 KB (added by adfernandes (Andrew Fernandes), 15 years ago) |
---|
-
src/texture.c
39 39 40 40 /* 41 41 This variable is used as a temporary global value which 42 is used to communicate with qsort and p sort since we have no42 is used to communicate with qsort and p_sort since we have no 43 43 provision from textur to pass additional arguments. 44 44 45 45 In a multi-threaded version, we would need to protect this. 46 46 */ 47 47 static ggobid *CurrentGGobi; 48 48 gint 49 p sort (const void *arg1, const void *arg2)49 p_sort (const void *arg1, const void *arg2) 50 50 { 51 51 ggobid *gg = CurrentGGobi; 52 52 … … 195 195 196 196 indx = (gint *) g_malloc (ny * sizeof (gint)); 197 197 /* 198 * gy is needed solely for the p sort routine: psort is used by198 * gy is needed solely for the p_sort routine: p_sort is used by 199 199 * qsort to put an index vector in the order that yy will assume. 200 200 */ 201 201 gg->p1d.gy = (gfloat *) g_malloc (ny * sizeof (gfloat)); … … 208 208 209 209 CurrentGGobi = gg; 210 210 211 qsort ((void *) indx, (gsize) ny, sizeof (gint), p sort);211 qsort ((void *) indx, (gsize) ny, sizeof (gint), p_sort); 212 212 qsort ((void *) yy, (gsize) ny, sizeof (gfloat), fcompare); 213 213 CurrentGGobi = NULL; 214 214 /*