mirror of
https://github.com/X11Libre/xf86-video-chips.git
synced 2026-03-24 01:24:44 +00:00
replace VT_FUNC_ARGS_DECL and VT_FUNC_ARGS
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -49,7 +49,4 @@
|
||||
|
||||
#define FREE_SCREEN_ARGS_DECL ScrnInfoPtr arg
|
||||
|
||||
#define VT_FUNC_ARGS_DECL ScrnInfoPtr arg
|
||||
#define VT_FUNC_ARGS pScrn
|
||||
|
||||
#endif
|
||||
|
||||
@@ -162,14 +162,14 @@ CHIPS_SetMode(
|
||||
/* put the ScreenParameters back */
|
||||
if (cPtr->DGAactive) {
|
||||
pScrn->displayWidth = OldDisplayWidth[index];
|
||||
pScrn->EnterVT(VT_FUNC_ARGS);
|
||||
pScrn->EnterVT(pScrn);
|
||||
|
||||
cPtr->DGAactive = FALSE;
|
||||
}
|
||||
} else {
|
||||
if(!cPtr->DGAactive) { /* save the old parameters */
|
||||
OldDisplayWidth[index] = pScrn->displayWidth;
|
||||
pScrn->LeaveVT(VT_FUNC_ARGS);
|
||||
pScrn->LeaveVT(pScrn);
|
||||
cPtr->DGAactive = TRUE;
|
||||
}
|
||||
|
||||
|
||||
@@ -144,8 +144,8 @@ static Bool CHIPSPciProbe(DriverPtr drv, int entity_num,
|
||||
struct pci_device *dev, intptr_t match_data);
|
||||
static Bool CHIPSPreInit(ScrnInfoPtr pScrn, int flags);
|
||||
static Bool CHIPSScreenInit(SCREEN_INIT_ARGS_DECL);
|
||||
static Bool CHIPSEnterVT(VT_FUNC_ARGS_DECL);
|
||||
static void CHIPSLeaveVT(VT_FUNC_ARGS_DECL);
|
||||
static Bool CHIPSEnterVT(ScrnInfoPtr arg);
|
||||
static void CHIPSLeaveVT(ScrnInfoPtr arg);
|
||||
static Bool CHIPSCloseScreen(CLOSE_SCREEN_ARGS_DECL);
|
||||
static void CHIPSFreeScreen(FREE_SCREEN_ARGS_DECL);
|
||||
static ModeStatus CHIPSValidMode(SCRN_ARG_TYPE arg, DisplayModePtr mode,
|
||||
@@ -3293,7 +3293,7 @@ chipsPreInit655xx(ScrnInfoPtr pScrn, int flags)
|
||||
|
||||
/* Mandatory */
|
||||
static Bool
|
||||
CHIPSEnterVT(VT_FUNC_ARGS_DECL)
|
||||
CHIPSEnterVT(ScrnInfoPtr arg)
|
||||
{
|
||||
SCRN_INFO_PTR(arg);
|
||||
CHIPSPtr cPtr = CHIPSPTR(pScrn);
|
||||
@@ -3322,7 +3322,7 @@ CHIPSEnterVT(VT_FUNC_ARGS_DECL)
|
||||
|
||||
/* Mandatory */
|
||||
static void
|
||||
CHIPSLeaveVT(VT_FUNC_ARGS_DECL)
|
||||
CHIPSLeaveVT(ScrnInfoPtr arg)
|
||||
{
|
||||
SCRN_INFO_PTR(arg);
|
||||
CHIPSPtr cPtr = CHIPSPTR(pScrn);
|
||||
|
||||
Reference in New Issue
Block a user