mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
mi: move ValidateRec to mi_priv.h and rename to MiValidateRec
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
54c996274f
commit
62b0add858
@@ -135,7 +135,6 @@ Equipment Corporation.
|
||||
#include "dixstruct.h"
|
||||
#include "gcstruct.h"
|
||||
#include "servermd.h"
|
||||
#include "mivalidate.h"
|
||||
#include "globals.h"
|
||||
#include "compint.h"
|
||||
#include "privates.h"
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "kdrive.h"
|
||||
#include <mivalidate.h>
|
||||
#include <dixstruct.h>
|
||||
#include "privates.h"
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@ of the copyright holder.
|
||||
#include "regionstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "validate.h"
|
||||
#include "resource.h"
|
||||
#include "gcstruct.h"
|
||||
|
||||
@@ -42,7 +42,6 @@ of the copyright holder.
|
||||
#include "regionstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "validate.h"
|
||||
#include "resource.h"
|
||||
#include "gcstruct.h"
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
#include "xf86Xinput_priv.h"
|
||||
#include "xf86InPriv.h"
|
||||
#include "xf86Config.h"
|
||||
#include "mivalidate.h"
|
||||
#include "xf86Module_priv.h"
|
||||
|
||||
/* For xf86GetClocks */
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#include "regionstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "validate.h"
|
||||
#include "resource.h"
|
||||
#include "gcstruct.h"
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include "pixmapstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "dixfontstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "driWrap.h"
|
||||
#include "dri.h"
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ in this Software without prior written authorization from The Open Group.
|
||||
|
||||
typedef enum { VTOther, VTStack, VTMove, VTUnmap, VTMap, VTBroken } VTKind;
|
||||
|
||||
/* union _Validate is now device dependent; see mivalidate.h for an example */
|
||||
typedef union _Validate *ValidatePtr;
|
||||
/* union _MiValidate is now device dependent; see mivalidate.h for an example */
|
||||
typedef union _MiValidate *ValidatePtr;
|
||||
|
||||
#define UnmapValData ((ValidatePtr)1)
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ typedef struct _Window {
|
||||
WindowPtr lastChild; /* bottom-most child */
|
||||
RegionRec clipList; /* clipping rectangle for output */
|
||||
RegionRec borderClip; /* NotClippedByChildren + border */
|
||||
union _Validate *valdata;
|
||||
union _MiValidate *valdata;
|
||||
RegionRec winSize;
|
||||
RegionRec borderSize;
|
||||
xPoint origin; /* position relative to parent */
|
||||
|
||||
13
mi/mi_priv.h
13
mi/mi_priv.h
@@ -89,4 +89,17 @@ WindowPtr miXYToWindow(ScreenPtr pScreen, SpritePtr pSprite, int x, int y);
|
||||
_X_EXPORT /* used by in-tree libwfb.so module */
|
||||
int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
|
||||
|
||||
typedef union _MiValidate {
|
||||
struct BeforeValidate {
|
||||
DDXPointRec oldAbsCorner; /* old window position */
|
||||
RegionPtr borderVisible; /* visible region of border, */
|
||||
/* non-null when size changes */
|
||||
Bool resized; /* unclipped winSize has changed */
|
||||
} before;
|
||||
struct AfterValidate {
|
||||
RegionRec exposed; /* exposed regions, absolute pos */
|
||||
RegionRec borderExposed;
|
||||
} after;
|
||||
} MiValidateRec;
|
||||
|
||||
#endif /* _XSERVER_MI_PRIV_H */
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "gcstruct.h"
|
||||
#include "regionstr.h"
|
||||
#include "privates.h"
|
||||
#include "mivalidate.h"
|
||||
#include "mioverlay.h"
|
||||
#include "migc.h"
|
||||
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
/*
|
||||
|
||||
Copyright 1993, 1998 The Open Group
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell this software and its
|
||||
documentation for any purpose is hereby granted without fee, provided that
|
||||
the above copyright notice appear in all copies and that both that
|
||||
copyright notice and this permission notice appear in supporting
|
||||
documentation.
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of The Open Group shall
|
||||
not be used in advertising or otherwise to promote the sale, use or
|
||||
other dealings in this Software without prior written authorization
|
||||
from The Open Group.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef MIVALIDATE_H
|
||||
#define MIVALIDATE_H
|
||||
|
||||
#include "regionstr.h"
|
||||
|
||||
typedef union _Validate {
|
||||
struct BeforeValidate {
|
||||
DDXPointRec oldAbsCorner; /* old window position */
|
||||
RegionPtr borderVisible; /* visible region of border, */
|
||||
/* non-null when size changes */
|
||||
Bool resized; /* unclipped winSize has changed */
|
||||
} before;
|
||||
struct AfterValidate {
|
||||
RegionRec exposed; /* exposed regions, absolute pos */
|
||||
RegionRec borderExposed;
|
||||
} after;
|
||||
} ValidateRec;
|
||||
|
||||
#endif /* MIVALIDATE_H */
|
||||
@@ -99,7 +99,6 @@ Equipment Corporation.
|
||||
#include "validate.h"
|
||||
#include "windowstr.h"
|
||||
#include "regionstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "globals.h"
|
||||
#include "compint.h"
|
||||
|
||||
|
||||
@@ -59,7 +59,6 @@ SOFTWARE.
|
||||
#include "windowstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "inputstr.h"
|
||||
|
||||
void
|
||||
@@ -123,11 +122,13 @@ miClearToBackground(WindowPtr pWin,
|
||||
void
|
||||
miMarkWindow(WindowPtr pWin)
|
||||
{
|
||||
ValidatePtr val;
|
||||
|
||||
if (pWin->valdata)
|
||||
return;
|
||||
val = (ValidatePtr) XNFalloc(sizeof(ValidateRec));
|
||||
|
||||
ValidatePtr val = (ValidatePtr) calloc(1, sizeof(MiValidateRec));
|
||||
if (!val)
|
||||
return;
|
||||
|
||||
val->before.oldAbsCorner.x = pWin->drawable.x;
|
||||
val->before.oldAbsCorner.y = pWin->drawable.y;
|
||||
val->before.borderVisible = NullRegion;
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include "pixmapstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "dixfontstr.h"
|
||||
#include "mivalidate.h"
|
||||
#include "fb.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include "pixmapstr.h"
|
||||
#include "windowstr.h"
|
||||
#include "propertyst.h"
|
||||
#include "mivalidate.h"
|
||||
#include "picturestr.h"
|
||||
|
||||
#include "rootlessCommon.h"
|
||||
|
||||
@@ -101,8 +101,6 @@ Equipment Corporation.
|
||||
#include "validate.h"
|
||||
#include "windowstr.h"
|
||||
#include "regionstr.h"
|
||||
#include "mivalidate.h"
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
int RootlessMiValidateTree(WindowPtr pRoot, WindowPtr pChild, VTKind kind);
|
||||
|
||||
Reference in New Issue
Block a user