diff options
author | dscho <dscho> | 2001-09-29 12:51:24 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-09-29 12:51:24 +0000 |
commit | 282b071a43fc9a8a12c9cdb98296a801b9d65fd3 (patch) | |
tree | c00a687d6fac781d58e01a7a026be32ef6d13a29 /translate.c | |
parent | c30ded8d532bc3b56c8945b88ac457417f5b3706 (diff) | |
download | libvncserver-282b071a43fc9a8a12c9cdb98296a801b9d65fd3.zip libvncserver-282b071a43fc9a8a12c9cdb98296a801b9d65fd3.tar.gz |
dropped miregion and all the X stuff in favour of Wez' sraRegion, added dox
Diffstat (limited to 'translate.c')
-rw-r--r-- | translate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/translate.c b/translate.c index 82de89e..5745bf2 100644 --- a/translate.c +++ b/translate.c @@ -346,11 +346,9 @@ rfbSetClientColourMap(cl, firstColour, nColours) [cl->format.bitsPerPixel / 16]) (&cl->translateLookupTable, &rfbServerFormat, &cl->format); - REGION_UNINIT(pScreen,&cl->modifiedRegion); - box.x1 = box.y1 = 0; - box.x2 = rfbScreen.width; - box.y2 = rfbScreen.height; - REGION_INIT(pScreen,&cl->modifiedRegion,&box,0); + sraRgnDestroy(cl->modifiedRegion); + cl->modifiedRegion = + sraRgnCreateRect(0,0,rfbScreen.width,rfbScreen.height); return TRUE; } |