From 74c7c6cd847cdf062864af1d7826785d0584731b Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 25 Sep 2001 22:56:14 +0000 Subject: look for align bug with odd width. Bug in vncviewer? --- d3des.o | Bin 16796 -> 0 bytes example.c | 9 +++++++-- tabletranstemplate.c | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 d3des.o diff --git a/d3des.o b/d3des.o deleted file mode 100644 index 5202cef..0000000 Binary files a/d3des.o and /dev/null differ diff --git a/example.c b/example.c index e149d97..57d0d37 100644 --- a/example.c +++ b/example.c @@ -38,12 +38,17 @@ const int maxx=641, maxy=480, bpp=4; void initBuffer(unsigned char* buffer) { int i,j; - for(i=0;igreenMax + 1; while (height > 0) { - opLineEnd = op + width; + opLineEnd = &op[width]; while (op < opLineEnd) { *(op++) = (redTable[(*ip >> in->redShift) & in->redMax] | -- cgit v1.2.1