Commit 47f18e57 authored by dscho's avatar dscho

font errors, requestedRegion bug

parent f41dc003
immediate: immediate:
---------- ----------
DeferUpdateTime (timing problems!)
cursor drawing: set optional grain to mark bigger rectangles as drawn (else
you end up with thousands of one-pixel-rectangles to encode).
selectbox: scroll bars selectbox: scroll bars
documentation documentation
hint that to mark very tiny regions as hint that to mark very tiny regions as
......
...@@ -28,7 +28,7 @@ int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, ...@@ -28,7 +28,7 @@ int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp,colour,bpp); memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp,colour,bpp);
d<<=1; d<<=1;
} }
if((i&7)!=0) data++; /* if((i&7)!=0) data++; */
} }
return(width); return(width);
} }
...@@ -90,7 +90,7 @@ int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, ...@@ -90,7 +90,7 @@ int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
} }
d<<=1; d<<=1;
} }
//if((i&7)==0) data++; /* if((i&7)==0) data++; */
data += extra_bytes; data += extra_bytes;
} }
return(width); return(width);
......
...@@ -871,7 +871,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) ...@@ -871,7 +871,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
sraRect rect; sraRect rect;
int nUpdateRegionRects; int nUpdateRegionRects;
rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf; rfbFramebufferUpdateMsg *fu = (rfbFramebufferUpdateMsg *)cl->updateBuf;
sraRegionPtr updateRegion,updateCopyRegion; sraRegionPtr updateRegion,updateCopyRegion,tmpRegion;
int dx, dy; int dx, dy;
Bool sendCursorShape = FALSE; Bool sendCursorShape = FALSE;
...@@ -932,8 +932,10 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) ...@@ -932,8 +932,10 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
updateCopyRegion = sraRgnCreateRgn(cl->copyRegion); updateCopyRegion = sraRgnCreateRgn(cl->copyRegion);
sraRgnAnd(updateCopyRegion,cl->requestedRegion); sraRgnAnd(updateCopyRegion,cl->requestedRegion);
sraRgnOffset(cl->requestedRegion,cl->copyDX,cl->copyDY); tmpRegion = sraRgnCreateRgn(cl->requestedRegion);
sraRgnAnd(updateCopyRegion,cl->requestedRegion); sraRgnOffset(tmpRegion,cl->copyDX,cl->copyDY);
sraRgnAnd(updateCopyRegion,tmpRegion);
sraRgnDestroy(tmpRegion);
dx = cl->copyDX; dx = cl->copyDX;
dy = cl->copyDY; dy = cl->copyDY;
...@@ -957,7 +959,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) ...@@ -957,7 +959,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
sraRgnSubtract(cl->modifiedRegion,updateRegion); sraRgnSubtract(cl->modifiedRegion,updateRegion);
sraRgnSubtract(cl->modifiedRegion,updateCopyRegion); sraRgnSubtract(cl->modifiedRegion,updateCopyRegion);
sraRgnMakeEmpty(cl->requestedRegion); /* sraRgnMakeEmpty(cl->requestedRegion); */
sraRgnMakeEmpty(cl->copyRegion); sraRgnMakeEmpty(cl->copyRegion);
cl->copyDX = 0; cl->copyDX = 0;
cl->copyDY = 0; cl->copyDY = 0;
......
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