From addef7cc09e108276d88a5a5095fe494f2179c7f Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Sat, 18 Apr 1998 02:08:41 +0200 Subject: [PATCH] bugfix in swap_bytes in encode_truecolor Rev: src/modules/Image/encodings/x.c:1.15 --- src/modules/Image/encodings/x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/Image/encodings/x.c b/src/modules/Image/encodings/x.c index 704d21a96b..4d3a761a42 100644 --- a/src/modules/Image/encodings/x.c +++ b/src/modules/Image/encodings/x.c @@ -1,9 +1,9 @@ -/* $Id: x.c,v 1.14 1998/03/26 03:12:00 hubbe Exp $ */ +/* $Id: x.c,v 1.15 1998/04/18 00:08:41 mirar Exp $ */ /* **! module Image **! note -**! $Id: x.c,v 1.14 1998/03/26 03:12:00 hubbe Exp $ +**! $Id: x.c,v 1.15 1998/04/18 00:08:41 mirar Exp $ **! submodule X **! **! This submodule handles encoding and decoding of @@ -29,7 +29,7 @@ #include <winsock.h> #endif -RCSID("$Id: x.c,v 1.14 1998/03/26 03:12:00 hubbe Exp $"); +RCSID("$Id: x.c,v 1.15 1998/04/18 00:08:41 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -344,8 +344,8 @@ THREADS_ALLOW(); while (x>=3) { d[0]^=d[1],d[1]^=d[0],d[0]^=d[1]; - d+=3; - x-=3; + d+=2; + x-=2; } break; case 1: -- GitLab