diff options
Diffstat (limited to 'libvncserver/zrle.c')
-rw-r--r-- | libvncserver/zrle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libvncserver/zrle.c b/libvncserver/zrle.c index da9e67b..76123a0 100644 --- a/libvncserver/zrle.c +++ b/libvncserver/zrle.c @@ -30,13 +30,13 @@ #define GET_IMAGE_INTO_BUF(tx,ty,tw,th,buf) \ -{ char *fbptr = (cl->screen->frameBuffer \ - + (cl->screen->paddedWidthInBytes * ty) \ - + (tx * (cl->screen->bitsPerPixel / 8))); \ +{ char *fbptr = (cl->scaledScreen->frameBuffer \ + + (cl->scaledScreen->paddedWidthInBytes * ty) \ + + (tx * (cl->scaledScreen->bitsPerPixel / 8))); \ \ (*cl->translateFn)(cl->translateLookupTable, &cl->screen->serverFormat,\ &cl->format, fbptr, (char*)buf, \ - cl->screen->paddedWidthInBytes, tw, th); } + cl->scaledScreen->paddedWidthInBytes, tw, th); } #define EXTRA_ARGS , rfbClientPtr cl |