Applied vnc-def.patch and vnc-xorg.patch from FC3, except:
* The removal of printRegion
* The patching of xc/programs/Xserver/Imakefile, which should be part of xc.patch
* The new xc.patch, which has already been applied.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@170 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/xc/programs/Xserver/vnc/RegionHelper.h b/xc/programs/Xserver/vnc/RegionHelper.h
index 640d558..5a71c3a 100644
--- a/xc/programs/Xserver/vnc/RegionHelper.h
+++ b/xc/programs/Xserver/vnc/RegionHelper.h
@@ -54,8 +54,8 @@
void init(BoxPtr rect, int size) {
reg = ®Rec;
- if (rect && (rect->x2 == rect->x1 || rect->y2 == rect->y1)) {
- REGION_INIT(pScreen, reg, NullBox, 0);
+ if (!rect || (rect->x2 == rect->x1 || rect->y2 == rect->y1)) {
+ REGION_NULL(pScreen, reg);
} else {
REGION_INIT(pScreen, reg, rect, size);
}