From 9295afbf308cb9040c6b1842d06b580345f26712 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Tue, 21 Oct 1997 15:36:07 +0200 Subject: [PATCH] use of THIS inside THREADS_ALLOW fixed Rev: src/modules/Image/image.c:1.43 Rev: src/modules/Image/x.c:1.12 --- src/modules/Image/image.c | 8 ++++---- src/modules/Image/x.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c index cfef2186f7..84cef371d3 100644 --- a/src/modules/Image/image.c +++ b/src/modules/Image/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.42 1997/10/15 00:40:09 mirar Exp $ */ +/* $Id: image.c,v 1.43 1997/10/21 13:32:13 mirar Exp $ */ /* **! module Image @@ -6,7 +6,7 @@ **! This module adds image-drawing and -manipulating **! capabilities to pike. **! note -**! $Id: image.c,v 1.42 1997/10/15 00:40:09 mirar Exp $<br> +**! $Id: image.c,v 1.43 1997/10/21 13:32:13 mirar Exp $<br> **! see also: Image.font, Image.image **! **! class image @@ -107,7 +107,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: image.c,v 1.42 1997/10/15 00:40:09 mirar Exp $"); +RCSID("$Id: image.c,v 1.43 1997/10/21 13:32:13 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -2624,7 +2624,7 @@ static void image_map_fs(INT32 args) while (i--) { image_floyd_steinberg(s,xs,errb,w=!w,res,ct,1); - for (j=0; j<THIS->xsize; j++) + for (j=0; j<xs; j++) *(d++)=ct->clut[res[j]]; s+=xs; } diff --git a/src/modules/Image/x.c b/src/modules/Image/x.c index 7c7b61d31b..4805a38c39 100644 --- a/src/modules/Image/x.c +++ b/src/modules/Image/x.c @@ -1,4 +1,4 @@ -/* $Id: x.c,v 1.11 1997/10/12 21:10:53 mirar Exp $ */ +/* $Id: x.c,v 1.12 1997/10/21 13:36:07 mirar Exp $ */ /* **! module Image @@ -12,7 +12,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: x.c,v 1.11 1997/10/12 21:10:53 mirar Exp $"); +RCSID("$Id: x.c,v 1.12 1997/10/21 13:36:07 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -164,7 +164,7 @@ void image_to8bit_fs(INT32 args) while (i--) { image_floyd_steinberg(s,xs,errb,w=!w,res,ct,1); - for (j=0; j<THIS->xsize; j++) + for (j=0; j<xs; j++) *(d++)=ct->index[res[j]]; s+=xs; } -- GitLab