summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2003-10-08 20:23:52 +0000
committerdscho <dscho>2003-10-08 20:23:52 +0000
commitd117c4b5640990ac4a6b37da69930c2c2164ee74 (patch)
tree7a863fb7936199c17c43dfb34256b3aba76070e8
parentd02db5cac45f50f1c3f13f9ffaeb402ca64c78e9 (diff)
downloadlibtdevnc-d117c4b5640990ac4a6b37da69930c2c2164ee74.tar.gz
libtdevnc-d117c4b5640990ac4a6b37da69930c2c2164ee74.zip
fix gcc 2.x compilation: no C99
-rw-r--r--zrle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zrle.c b/zrle.c
index bd3c9ce..dd1b82e 100644
--- a/zrle.c
+++ b/zrle.c
@@ -29,13 +29,13 @@
#define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \
- char *fbptr = (cl->screen->frameBuffer \
+{ char *fbptr = (cl->screen->frameBuffer \
+ (cl->screen->paddedWidthInBytes * ty) \
+ (tx * (cl->screen->bitsPerPixel / 8))); \
\
(*cl->translateFn)(cl->translateLookupTable, &cl->screen->rfbServerFormat,\
&cl->format, fbptr, (char*)buf, \
- cl->screen->paddedWidthInBytes, tw, th);
+ cl->screen->paddedWidthInBytes, tw, th); }
#define EXTRA_ARGS , rfbClientPtr cl