diff options
author | steven_carr <steven_carr> | 2006-05-03 19:29:18 +0000 |
---|---|---|
committer | steven_carr <steven_carr> | 2006-05-03 19:29:18 +0000 |
commit | 2670641432683c15529d93f3ec2e09fed220b53c (patch) | |
tree | 29d517f032b71b673681574dc352d80096a8426f /libvncserver/ultra.c | |
parent | afa9fae0248650cb358463c37756c3560da4b57a (diff) | |
download | libtdevnc-2670641432683c15529d93f3ec2e09fed220b53c.tar.gz libtdevnc-2670641432683c15529d93f3ec2e09fed220b53c.zip |
Client Independent Server Side Scaling is now supported
Both PalmVNC and UltraVNC SetScale messages are supported
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; |