diff options
author | Adam Jackson <ajax@redhat.com> | 2018-08-07 15:16:16 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-09-28 16:25:01 -0400 |
commit | d78ac2f15913bf6f00e06986cc7db0ade9ebd806 (patch) | |
tree | 85f4be66dc686f3adb8066653d5c1999a4428be0 /mi | |
parent | 0a9415cf793babed1f28c61f8047d51de04f1528 (diff) |
mi: Factor out miSaveScreen
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miscrinit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mi/miscrinit.c b/mi/miscrinit.c index 9c6af0dc7..f38298266 100644 --- a/mi/miscrinit.c +++ b/mi/miscrinit.c @@ -124,6 +124,12 @@ miCloseScreen(ScreenPtr pScreen) return ((*pScreen->DestroyPixmap) ((PixmapPtr) pScreen->devPrivate)); } +static Bool +miSaveScreen(ScreenPtr pScreen, int on) +{ + return TRUE; +} + /* With the introduction of pixmap privates, the "screen pixmap" can no * longer be created in miScreenInit, since all the modules that could * possibly ask for pixmap private space have not been initialized at @@ -242,7 +248,9 @@ miScreenInit(ScreenPtr pScreen, void *pbits, /* pointer to screen bits */ pScreen->CloseScreen = miCloseScreen; } /* else CloseScreen */ - /* QueryBestSize, SaveScreen, GetImage, GetSpans */ + /* QueryBestSize */ + pScreen->SaveScreen = miSaveScreen; + /* GetImage, GetSpans */ pScreen->SourceValidate = (SourceValidateProcPtr) 0; /* CreateWindow, DestroyWindow, PositionWindow, ChangeWindowAttributes */ /* RealizeWindow, UnrealizeWindow */ |