Revert "mi: drop obsolete miOverlayCopyUnderlay()"
This reverts commit be6985948d
.
Requested by Nvidia - their proprietary driver still needs it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1843>
This commit is contained in:
parent
d4f92a5688
commit
9d88cc5f11
|
@ -58,9 +58,14 @@ typedef struct {
|
||||||
static DevPrivateKeyRec miOverlayWindowKeyRec;
|
static DevPrivateKeyRec miOverlayWindowKeyRec;
|
||||||
|
|
||||||
#define miOverlayWindowKey (&miOverlayWindowKeyRec)
|
#define miOverlayWindowKey (&miOverlayWindowKeyRec)
|
||||||
|
static DevPrivateKeyRec miOverlayScreenKeyRec;
|
||||||
|
|
||||||
|
#define miOverlayScreenKey (&miOverlayScreenKeyRec)
|
||||||
|
|
||||||
static void MarkUnderlayWindow(WindowPtr);
|
static void MarkUnderlayWindow(WindowPtr);
|
||||||
|
|
||||||
|
#define MIOVERLAY_GET_SCREEN_PRIVATE(pScreen) ((miOverlayScreenPtr) \
|
||||||
|
dixLookupPrivate(&(pScreen)->devPrivates, miOverlayScreenKey))
|
||||||
#define MIOVERLAY_GET_WINDOW_PRIVATE(pWin) ((miOverlayWindowPtr) \
|
#define MIOVERLAY_GET_WINDOW_PRIVATE(pWin) ((miOverlayWindowPtr) \
|
||||||
dixLookupPrivate(&(pWin)->devPrivates, miOverlayWindowKey))
|
dixLookupPrivate(&(pWin)->devPrivates, miOverlayWindowKey))
|
||||||
#define MIOVERLAY_GET_WINDOW_TREE(pWin) \
|
#define MIOVERLAY_GET_WINDOW_TREE(pWin) \
|
||||||
|
@ -97,6 +102,12 @@ miOverlaySetRootClip(ScreenPtr pScreen, Bool enable)
|
||||||
|
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
|
|
||||||
|
Bool
|
||||||
|
miOverlayCopyUnderlay(ScreenPtr pScreen)
|
||||||
|
{
|
||||||
|
return MIOVERLAY_GET_SCREEN_PRIVATE(pScreen)->copyUnderlay;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
MarkUnderlayWindow(WindowPtr pWin)
|
MarkUnderlayWindow(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
typedef void (*miOverlayTransFunc) (ScreenPtr, int, BoxPtr);
|
typedef void (*miOverlayTransFunc) (ScreenPtr, int, BoxPtr);
|
||||||
typedef Bool (*miOverlayInOverlayFunc) (WindowPtr);
|
typedef Bool (*miOverlayInOverlayFunc) (WindowPtr);
|
||||||
|
|
||||||
|
extern _X_EXPORT Bool miOverlayCopyUnderlay(ScreenPtr);
|
||||||
extern _X_EXPORT void miOverlaySetRootClip(ScreenPtr, Bool);
|
extern _X_EXPORT void miOverlaySetRootClip(ScreenPtr, Bool);
|
||||||
|
|
||||||
#endif /* __MIOVERLAY_H */
|
#endif /* __MIOVERLAY_H */
|
||||||
|
|
Loading…
Reference in New Issue