mirror of
https://github.com/X11Libre/xf86-video-chips.git
synced 2026-03-24 01:24:44 +00:00
replace SWITCH_MODE_ARGS and SWITCH_MODE_ARGS_DECL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -44,7 +44,4 @@
|
||||
#define ADJUST_FRAME_ARGS_DECL ScrnInfoPtr arg, int x, int y
|
||||
#define ADJUST_FRAME_ARGS(arg, x, y) arg, x, y
|
||||
|
||||
#define SWITCH_MODE_ARGS_DECL ScrnInfoPtr arg, DisplayModePtr mode
|
||||
#define SWITCH_MODE_ARGS(arg, m) arg, m
|
||||
|
||||
#endif
|
||||
|
||||
@@ -176,7 +176,7 @@ CHIPS_SetMode(
|
||||
pScrn->displayWidth = pMode->bytesPerScanline /
|
||||
(pMode->bitsPerPixel >> 3);
|
||||
|
||||
CHIPSSwitchMode(SWITCH_MODE_ARGS(pScrn, pMode->mode));
|
||||
CHIPSSwitchMode(pScrn, pMode->mode);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
@@ -3963,7 +3963,7 @@ CHIPSScreenInit(SCREEN_INIT_ARGS_DECL)
|
||||
|
||||
/* Mandatory */
|
||||
Bool
|
||||
CHIPSSwitchMode(SWITCH_MODE_ARGS_DECL)
|
||||
CHIPSSwitchMode(ScrnInfoPtr arg, DisplayModePtr mode)
|
||||
{
|
||||
SCRN_INFO_PTR(arg);
|
||||
CHIPSPtr cPtr = CHIPSPTR(pScrn);
|
||||
|
||||
@@ -383,7 +383,7 @@ extern unsigned int ChipsReg32HiQV[];
|
||||
/* Prototypes */
|
||||
|
||||
void CHIPSAdjustFrame(ADJUST_FRAME_ARGS_DECL);
|
||||
Bool CHIPSSwitchMode(SWITCH_MODE_ARGS_DECL);
|
||||
Bool CHIPSSwitchMode(ScrnInfoPtr arg, DisplayModePtr mode);
|
||||
|
||||
/* video */
|
||||
void CHIPSInitVideo(ScreenPtr pScreen);
|
||||
|
||||
Reference in New Issue
Block a user