diff options
-rw-r--r-- | xc/config/cf/vnc.def | 6 | ||||
-rw-r--r-- | xc/programs/Xserver/vnc/RegionHelper.h | 4 | ||||
-rw-r--r-- | xc/programs/Xserver/vnc/Xvnc/xvnc.cc | 6 |
3 files changed, 6 insertions, 10 deletions
diff --git a/xc/config/cf/vnc.def b/xc/config/cf/vnc.def index 715044e5..255c8f46 100644 --- a/xc/config/cf/vnc.def +++ b/xc/config/cf/vnc.def @@ -6,10 +6,10 @@ #define BuildNls NO #define BuildXIE NO #define BuildGlxExt NO -#define XnestServer NO +#define XnestServer YES +#define XF86Server NO #define XprtServer NO -#define XdmxServer NO -#define BuildDmx NO +#define BuildXFree86ConfigTools NO #ifdef SunArchitecture #define ProjectRoot /usr/openwin diff --git a/xc/programs/Xserver/vnc/RegionHelper.h b/xc/programs/Xserver/vnc/RegionHelper.h index 640d5589..5a71c3a1 100644 --- a/xc/programs/Xserver/vnc/RegionHelper.h +++ b/xc/programs/Xserver/vnc/RegionHelper.h @@ -54,8 +54,8 @@ public: 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); } diff --git a/xc/programs/Xserver/vnc/Xvnc/xvnc.cc b/xc/programs/Xserver/vnc/Xvnc/xvnc.cc index 4936016e..9e8b264d 100644 --- a/xc/programs/Xserver/vnc/Xvnc/xvnc.cc +++ b/xc/programs/Xserver/vnc/Xvnc/xvnc.cc @@ -195,6 +195,7 @@ static int vfbBitsPerPixel(int depth) } extern "C" { + void ddxInitGlobals() {} void ddxGiveUp() { int i; @@ -911,11 +912,6 @@ static void vfbClientStateChange(CallbackListPtr*, pointer, pointer) { dispatchException &= ~DE_RESET; } -/* ddxInitGlobals - called by |InitGlobals| from os/util.c */ -void ddxInitGlobals(void) -{ -} - void InitOutput(ScreenInfo *screenInfo, int argc, char **argv) { ErrorF("\nXvnc version %s - built %s\n", XVNCVERSION, buildtime); |