summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorTom Yan <tom.ty89@gmail.com>2022-01-20 21:54:35 +0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-14 17:20:09 +0000
commitaa3f5023e3fae0df74039702b6c8218bc14dc679 (patch)
tree3cf26e76e4b759ca835fe074332eedde84d46978 /mi
parent786f7ceb61d3816ff4b3daa49d4072675dbaf41c (diff)
xnest/mi: remove redundant call of miScreenDevPrivateInit()
miScreenDevPrivateInit() is also made static in this commit. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/854>
Diffstat (limited to 'mi')
-rw-r--r--mi/mi.h5
-rw-r--r--mi/miscrinit.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/mi/mi.h b/mi/mi.h
index 8b0a231ca..2d1cd782c 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -382,11 +382,6 @@ extern _X_EXPORT Bool miModifyPixmapHeader(PixmapPtr pPixmap,
extern _X_EXPORT Bool miCreateScreenResources(ScreenPtr /*pScreen */
);
-extern _X_EXPORT Bool miScreenDevPrivateInit(ScreenPtr pScreen,
- int width,
- void *pbits
- );
-
extern _X_EXPORT Bool miScreenInit(ScreenPtr pScreen,
void *pbits,
int xsize,
diff --git a/mi/miscrinit.c b/mi/miscrinit.c
index 3bb52b1bc..f375d19fa 100644
--- a/mi/miscrinit.c
+++ b/mi/miscrinit.c
@@ -184,7 +184,7 @@ miCreateScreenResources(ScreenPtr pScreen)
return TRUE;
}
-Bool
+static Bool
miScreenDevPrivateInit(ScreenPtr pScreen, int width, void *pbits)
{
miScreenInitParmsPtr pScrInitParms;