xfree86: Remove unused HardEdges
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
4100687ea6
commit
ac3af4bd21
|
@ -74,8 +74,6 @@ static miPointerScreenFuncRec xf86PointerScreenFuncs = {
|
||||||
|
|
||||||
static xf86ScreenLayoutRec xf86ScreenLayout[MAXSCREENS];
|
static xf86ScreenLayoutRec xf86ScreenLayout[MAXSCREENS];
|
||||||
|
|
||||||
static Bool HardEdges;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* xf86InitViewport --
|
* xf86InitViewport --
|
||||||
* Initialize paning & zooming parameters, so that a driver must only
|
* Initialize paning & zooming parameters, so that a driver must only
|
||||||
|
@ -429,16 +427,6 @@ xf86CursorOffScreen(ScreenPtr *pScreen, int *x, int *y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* This presents problems for overlapping screens when
|
|
||||||
HardEdges is used. Have to think about the logic more */
|
|
||||||
if ((*x < 0) || (*x >= (*pScreen)->width) ||
|
|
||||||
(*y < 0) || (*y >= (*pScreen)->height)) {
|
|
||||||
/* We may have crossed more than one screen */
|
|
||||||
xf86CursorOffScreen(pScreen, x, y);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -582,9 +570,6 @@ xf86InitOrigins(void)
|
||||||
xf86ScreenLayoutPtr pLayout;
|
xf86ScreenLayoutPtr pLayout;
|
||||||
Bool OldStyleConfig = FALSE;
|
Bool OldStyleConfig = FALSE;
|
||||||
|
|
||||||
/* need to have this set up with a config file option */
|
|
||||||
HardEdges = FALSE;
|
|
||||||
|
|
||||||
memset(xf86ScreenLayout, 0, MAXSCREENS * sizeof(xf86ScreenLayoutRec));
|
memset(xf86ScreenLayout, 0, MAXSCREENS * sizeof(xf86ScreenLayoutRec));
|
||||||
|
|
||||||
screensLeft = prevScreensLeft = (1 << xf86NumScreens) - 1;
|
screensLeft = prevScreensLeft = (1 << xf86NumScreens) - 1;
|
||||||
|
@ -836,7 +821,7 @@ xf86InitOrigins(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!HardEdges && !OldStyleConfig) {
|
if (!OldStyleConfig) {
|
||||||
for (i = 0; i < xf86NumScreens; i++) {
|
for (i = 0; i < xf86NumScreens; i++) {
|
||||||
pLayout = &xf86ScreenLayout[i];
|
pLayout = &xf86ScreenLayout[i];
|
||||||
pScreen = xf86Screens[i]->pScreen;
|
pScreen = xf86Screens[i]->pScreen;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user