[patch] Xvnc 4.0b4 compilation problem
Tim Waugh
twaugh "at" redhat.com
Wed Mar 24 10:14:01 2004
vnc-4.0b4-unixsrc/xc/programs/Xserver/vnc/XserverDesktop.cc contains a
static function 'printRegion' which tries to use pScreen, a class
member variable. Since the function isn't a method of the class,
compilation fails.
The function isn't actually used anywhere, and so can be removed.
Using GCC 3.3.3 on Fedora Core Devel.
Tim.
*/
--- vnc-4.0b4-unixsrc/xc/programs/Xserver/vnc/XserverDesktop.cc.xorg 2003-09-04 14:04:40.000000000 +0100
+++ vnc-4.0b4-unixsrc/xc/programs/Xserver/vnc/XserverDesktop.cc 2004-03-22 17:50:05.000000000 +0000
@@ -376,25 +376,6 @@
}
}
-static void printRegion(RegionPtr reg)
-{
- int nrects = REGION_NUM_RECTS(reg);
-
- fprintf(stderr,"Region num rects %2d extents %3d,%3d %3dx%3d\n",nrects,
- (REGION_EXTENTS(pScreen,reg))->x1,
- (REGION_EXTENTS(pScreen,reg))->y1,
- (REGION_EXTENTS(pScreen,reg))->x2-(REGION_EXTENTS(pScreen,reg))->x1,
- (REGION_EXTENTS(pScreen,reg))->y2-(REGION_EXTENTS(pScreen,reg))->y1);
-
- for (int i = 0; i < nrects; i++) {
- fprintf(stderr," rect %3d,%3d %3dx%3d\n",
- REGION_RECTS(reg)[i].x1,
- REGION_RECTS(reg)[i].y1,
- REGION_RECTS(reg)[i].x2-REGION_RECTS(reg)[i].x1,
- REGION_RECTS(reg)[i].y2-REGION_RECTS(reg)[i].y1);
- }
-}
-
CARD32 XserverDesktop::deferredUpdateTimerCallback(OsTimerPtr timer,
CARD32 now, pointer arg)
{