Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
073c6c17
Commit
073c6c17
authored
May 30, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXmiexpose.c: drop file altogether
The only left function is identical to the one in mi/miexpose.c.
parent
6ce9fb5f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
210 deletions
+2
-210
Imakefile
nx-X11/programs/Xserver/Imakefile
+0
-3
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+0
-2
NXmiexpose.c
nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
+0
-192
Imakefile
nx-X11/programs/Xserver/mi/Imakefile
+2
-11
miexpose.c
nx-X11/programs/Xserver/mi/miexpose.c
+0
-2
No files found.
nx-X11/programs/Xserver/Imakefile
View file @
073c6c17
...
...
@@ -246,7 +246,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXpicture.o \
hw/nxagent/NXextension.o \
hw/nxagent/NXglxext.o \
hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \
hw/nxagent/NXdamage.o \
$(NULL)
...
...
@@ -264,7 +263,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXextension.o \
hw/nxagent/NXglxext.o \
hw/nxagent/NXxvdisp.o \
hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \
hw/nxagent/NXdamage.o \
$(NULL)
...
...
@@ -282,7 +280,6 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXextension.o \
hw/nxagent/NXglxext.o \
hw/nxagent/NXxvdisp.o \
hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \
hw/nxagent/NXdamage.o \
dix/main.o \
...
...
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
073c6c17
...
...
@@ -20,7 +20,6 @@ SRCS = \
NXshm.c \
NXglxext.c \
NXxvdisp.c \
NXmiexpose.c \
NXresource.c \
NXdamage.c \
NXmitrap.c \
...
...
@@ -81,7 +80,6 @@ OBJS = \
NXshm.o \
NXglxext.o \
NXxvdisp.o \
NXmiexpose.o \
NXresource.o \
NXdamage.o \
NXmitrap.o \
...
...
nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
deleted
100644 → 0
View file @
6ce9fb5f
/**************************************************************************/
/* */
/* Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com) */
/* Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> */
/* Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>*/
/* Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de> */
/* Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de> */
/* Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com) */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of the aforementioned persons and companies. */
/* */
/* Redistribution and use of the present software is allowed according */
/* to terms specified in the file LICENSE which comes in the source */
/* distribution. */
/* */
/* All rights reserved. */
/* */
/* NOTE: This software has received contributions from various other */
/* contributors, only the core maintainers and supporters are listed as */
/* copyright holders. Please contact us, if you feel you should be listed */
/* as copyright holder, as well. */
/* */
/**************************************************************************/
/***********************************************************
Copyright 1987, 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.
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/*****************************************************************
Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software.
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
DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL 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 Digital Equipment Corporation
shall not be used in advertising or otherwise to promote the sale, use or other
dealings in this Software without prior written authorization from Digital
Equipment Corporation.
******************************************************************/
#include "Windows.h"
#include "../../mi/miexpose.c"
void
miWindowExposures
(
pWin
,
prgn
,
other_exposed
)
WindowPtr
pWin
;
register
RegionPtr
prgn
,
other_exposed
;
{
RegionPtr
exposures
=
prgn
;
if
(
pWin
->
backStorage
&&
prgn
)
/*
* in some cases, backing store will cause a different
* region to be exposed than needs to be repainted
* (like when a window is mapped). RestoreAreas is
* allowed to return a region other than prgn,
* in which case this routine will free the resultant
* region. If exposures is null, then no events will
* be sent to the client; if prgn is empty
* no areas will be repainted.
*/
exposures
=
(
*
pWin
->
drawable
.
pScreen
->
RestoreAreas
)(
pWin
,
prgn
);
if
((
prgn
&&
!
RegionNil
(
prgn
))
||
(
exposures
&&
!
RegionNil
(
exposures
))
||
other_exposed
)
{
RegionRec
expRec
;
int
clientInterested
;
/*
* Restore from backing-store FIRST.
*/
clientInterested
=
(
pWin
->
eventMask
|
wOtherEventMasks
(
pWin
))
&
ExposureMask
;
if
(
other_exposed
)
{
if
(
exposures
)
{
RegionUnion
(
other_exposed
,
exposures
,
other_exposed
);
if
(
exposures
!=
prgn
)
RegionDestroy
(
exposures
);
}
exposures
=
other_exposed
;
}
if
(
clientInterested
&&
exposures
&&
(
RegionNumRects
(
exposures
)
>
RECTLIMIT
))
{
/*
* If we have LOTS of rectangles, we decide to take the extents
* and force an exposure on that. This should require much less
* work overall, on both client and server. This is cheating, but
* isn't prohibited by the protocol ("spontaneous combustion" :-).
*/
BoxRec
box
;
box
=
*
RegionExtents
(
exposures
);
if
(
exposures
==
prgn
)
{
exposures
=
&
expRec
;
RegionInit
(
exposures
,
&
box
,
1
);
RegionReset
(
prgn
,
&
box
);
}
else
{
RegionReset
(
exposures
,
&
box
);
RegionUnion
(
prgn
,
prgn
,
exposures
);
}
/* PaintWindowBackground doesn't clip, so we have to */
RegionIntersect
(
prgn
,
prgn
,
&
pWin
->
clipList
);
/* need to clear out new areas of backing store, too */
if
(
pWin
->
backStorage
)
(
void
)
(
*
pWin
->
drawable
.
pScreen
->
ClearBackingStore
)(
pWin
,
box
.
x1
-
pWin
->
drawable
.
x
,
box
.
y1
-
pWin
->
drawable
.
y
,
box
.
x2
-
box
.
x1
,
box
.
y2
-
box
.
y1
,
FALSE
);
}
if
(
prgn
&&
!
RegionNil
(
prgn
))
(
*
pWin
->
drawable
.
pScreen
->
PaintWindowBackground
)(
pWin
,
prgn
,
PW_BACKGROUND
);
if
(
clientInterested
&&
exposures
&&
!
RegionNil
(
exposures
))
miSendExposures
(
pWin
,
exposures
,
pWin
->
drawable
.
x
,
pWin
->
drawable
.
y
);
if
(
exposures
==
&
expRec
)
{
RegionUninit
(
exposures
);
}
else
if
(
exposures
&&
exposures
!=
prgn
&&
exposures
!=
other_exposed
)
RegionDestroy
(
exposures
);
if
(
prgn
)
RegionEmpty
(
prgn
);
}
else
if
(
exposures
&&
exposures
!=
prgn
)
RegionDestroy
(
exposures
);
}
nx-X11/programs/Xserver/mi/Imakefile
View file @
073c6c17
...
...
@@ -39,15 +39,6 @@ FFS_DEFINES = -DHAS_FFS
MIINITEXTSRC = miinitext.c
MIINITEXTOBJ = miinitext.o
#if (!(defined(NXAgentServer) && NXAgentServer))
NXAGENT_SKIP_SRCS = \
miexpose.c \
$(NULL)
NXAGENT_SKIP_OBJS = \
miexpose.o \
$(NULL)
#endif
SRCS = $(CBRT_SRC) \
mivaltree.c \
mipolyseg.c \
...
...
@@ -83,7 +74,7 @@ SRCS = $(CBRT_SRC) \
migc.c \
micmap.c \
mioverlay.c \
$(NXAGENT_SKIP_SRCS)
\
miexpose.c
\
$(NULL)
OBJS = $(CBRT_OBJ) \
...
...
@@ -121,7 +112,7 @@ OBJS = $(CBRT_OBJ) \
migc.o \
micmap.o \
mioverlay.o \
$(NXAGENT_SKIP_OBJS)
\
miexpose.o
\
$(NULL)
#if defined(XorgVersion)
...
...
nx-X11/programs/Xserver/mi/miexpose.c
View file @
073c6c17
...
...
@@ -489,7 +489,6 @@ miSendExposures(pWin, pRgn, dx, dy)
free
(
pEvent
);
}
#ifndef NXAGENT_SERVER
void
miWindowExposures
(
pWin
,
prgn
,
other_exposed
)
WindowPtr
pWin
;
...
...
@@ -578,7 +577,6 @@ miWindowExposures(pWin, prgn, other_exposed)
else
if
(
exposures
&&
exposures
!=
prgn
)
RegionDestroy
(
exposures
);
}
#endif
/*
this code is highly unlikely. it is not haile selassie.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment