Commit d117c4b5 authored by dscho's avatar dscho

fix gcc 2.x compilation: no C99

parent d02db5ca
...@@ -29,13 +29,13 @@ ...@@ -29,13 +29,13 @@
#define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \ #define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \
char *fbptr = (cl->screen->frameBuffer \ { char *fbptr = (cl->screen->frameBuffer \
+ (cl->screen->paddedWidthInBytes * ty) \ + (cl->screen->paddedWidthInBytes * ty) \
+ (tx * (cl->screen->bitsPerPixel / 8))); \ + (tx * (cl->screen->bitsPerPixel / 8))); \
\ \
(*cl->translateFn)(cl->translateLookupTable, &cl->screen->rfbServerFormat,\ (*cl->translateFn)(cl->translateLookupTable, &cl->screen->rfbServerFormat,\
&cl->format, fbptr, (char*)buf, \ &cl->format, fbptr, (char*)buf, \
cl->screen->paddedWidthInBytes, tw, th); cl->screen->paddedWidthInBytes, tw, th); }
#define EXTRA_ARGS , rfbClientPtr cl #define EXTRA_ARGS , rfbClientPtr cl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment