aboutsummaryrefslogtreecommitdiff
path: root/sonogram~
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-04-10 20:52:46 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commit66aa65d08587324b679556b7b50f5db434b8167c (patch)
treed57a08c689ce4826994eeba361da182784fd868c /sonogram~
parent545a9474c2f822f13b25204af0bc0b3d556f1c47 (diff)
committed patches from unauthorized-w32-patches-10-april-2010.zip from patch #3283782
svn path=/trunk/externals/unauthorized/; revision=15069
Diffstat (limited to 'sonogram~')
-rw-r--r--sonogram~/sonogram~.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c
index c9be8d4..4085b34 100644
--- a/sonogram~/sonogram~.c
+++ b/sonogram~/sonogram~.c
@@ -148,7 +148,11 @@ typedef struct _sonogram
t_int x_nbupdated; /* number of points updated */
t_glist *x_glist; /* keep graphic context for various operations */
t_int x_zoom; /* zoom factor */
+ #ifndef _WIN32
pthread_t x_updatechild; /* thread id for the update child */
+ #else
+ int x_updatechild;
+ #endif
t_int x_updatestart; /* starting position for update */
t_int x_updateend; /* ending position for update */
t_int x_xpos; /* stuck x position */
@@ -439,6 +443,7 @@ static void sonogram_update_part(t_sonogram *x, t_glist *glist, t_int bstart, t_
t_int erase, t_int redraw, t_int keepframe)
{
pthread_attr_t update_child_attr;
+ pthread_t update_child;
t_canvas *canvas=glist_getcanvas(glist);
if ( x->x_graphic )