diff options
Diffstat (limited to 'libvncserver/ultra.c')
-rw-r--r-- | libvncserver/ultra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvncserver/ultra.c b/libvncserver/ultra.c index 5825d5b..e1821bb 100644 --- a/libvncserver/ultra.c +++ b/libvncserver/ultra.c @@ -43,8 +43,8 @@ rfbSendOneRectEncodingUltra(rfbClientPtr cl, rfbZlibHeader hdr; int deflateResult; int i; - char *fbptr = (cl->screen->frameBuffer + (cl->screen->paddedWidthInBytes * y) - + (x * (cl->screen->bitsPerPixel / 8))); + char *fbptr = (cl->scaledScreen->frameBuffer + (cl->scaledScreen->paddedWidthInBytes * y) + + (x * (cl->scaledScreen->bitsPerPixel / 8))); int maxRawSize; int maxCompSize; @@ -78,7 +78,7 @@ rfbSendOneRectEncodingUltra(rfbClientPtr cl, */ (*cl->translateFn)(cl->translateLookupTable, &cl->screen->serverFormat, &cl->format, fbptr, lzoBeforeBuf, - cl->screen->paddedWidthInBytes, w, h); + cl->scaledScreen->paddedWidthInBytes, w, h); if ( cl->compStreamInitedLZO == FALSE ) { cl->compStreamInitedLZO = TRUE; |