diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-03-21 21:25:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-04-06 20:44:25 +0000 |
commit | 6c8c950258cf0da0cf24c5e80c2216914ac282a4 (patch) | |
tree | ad80fa3280e59a4787e3aa2a879ced0b0d8993a6 /nx-X11 | |
parent | c8a4e1e75c745c5c3ad947ba61c52cc5963d31dd (diff) | |
download | nx-libs-6c8c950258cf0da0cf24c5e80c2216914ac282a4.tar.gz nx-libs-6c8c950258cf0da0cf24c5e80c2216914ac282a4.tar.bz2 nx-libs-6c8c950258cf0da0cf24c5e80c2216914ac282a4.zip |
NXpicturestr_PictSolidFill.h: Drop file and revert db8705. Not an issue anymore nowadays.
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXpicture.c | 4 | ||||
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXpicturestr_PictSolidFill.h | 63 | ||||
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Render.c | 16 | ||||
-rw-r--r-- | nx-X11/programs/Xserver/render/picturestr.h | 4 |
4 files changed, 5 insertions, 82 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXpicture.c b/nx-X11/programs/Xserver/hw/nxagent/NXpicture.c index 53a4633e5..c08af1764 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXpicture.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXpicture.c @@ -296,10 +296,6 @@ CreateSolidPicture (Picture pid, xRenderColor *color, int *error) } pPicture->pSourcePict->type = SourcePictTypeSolidFill; pPicture->pSourcePict->solidFill.color = xRenderColorToCard32(*color); - pPicture->pSourcePict->solidFill.fullColor.alpha=color->alpha; - pPicture->pSourcePict->solidFill.fullColor.red=color->red; - pPicture->pSourcePict->solidFill.fullColor.green=color->green; - pPicture->pSourcePict->solidFill.fullColor.blue=color->blue; return pPicture; } diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXpicturestr_PictSolidFill.h b/nx-X11/programs/Xserver/hw/nxagent/NXpicturestr_PictSolidFill.h deleted file mode 100644 index 9cd73db5c..000000000 --- a/nx-X11/programs/Xserver/hw/nxagent/NXpicturestr_PictSolidFill.h +++ /dev/null @@ -1,63 +0,0 @@ -/**************************************************************************/ -/* */ -/* 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. */ -/* */ -/**************************************************************************/ - -/* - * $Id: picturestr.h,v 1.15 2005/12/09 18:35:21 ajax Exp $ - * - * Copyright © 2000 SuSE, Inc. - * - * 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, and that the name of SuSE not be used in advertising or - * publicity pertaining to distribution of the software without specific, - * written prior permission. SuSE makes no representations about the - * suitability of this software for any purpose. It is provided "as is" - * without express or implied warranty. - * - * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE - * 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. - * - * Author: Keith Packard, SuSE, Inc. - */ - -/* this header file gets included into Xserver/render/picturestr.h */ - -#ifndef NX_PICTURESTR_PICTSOLIDFILL_H -#define NX_PICTURESTR_PICTSOLIDFILL_H 1 - - -typedef struct _PictSolidFill { - unsigned int type; - CARD32 color; - xRenderColor fullColor; -} PictSolidFill, *PictSolidFillPtr; - -#endif /* NX_PICTURESTR_PICTSOLIDFILL_H */ diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c index 7ce204c3c..3193e01f5 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Render.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c @@ -2662,17 +2662,11 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2) #endif } - if (!pForm && pPicture->pSourcePict) - { - /*possible we need to add support for other picture types, for example gradients...*/ - switch(pPicture->pSourcePict->type) - { - case SourcePictTypeSolidFill: - nxagentPicturePriv(pPicture) -> picture = XRenderCreateSolidFill(nxagentDisplay, - (const XRenderColor*) &pPicture->pSourcePict->solidFill.fullColor); - break; - } - return; + if (!pForm) + { + *pBool = False; + + return; } #ifdef TEST diff --git a/nx-X11/programs/Xserver/render/picturestr.h b/nx-X11/programs/Xserver/render/picturestr.h index 27c36dc9c..4969f6cab 100644 --- a/nx-X11/programs/Xserver/render/picturestr.h +++ b/nx-X11/programs/Xserver/render/picturestr.h @@ -65,14 +65,10 @@ typedef struct pixman_transform PictTransform, *PictTransformPtr; #define SourcePictTypeRadial 2 #define SourcePictTypeConical 3 -#ifdef NXAGENT_SERVER -#include "../hw/nxagent/NXpicturestr_PictSolidFill.h" -#else typedef struct _PictSolidFill { unsigned int type; CARD32 color; } PictSolidFill, *PictSolidFillPtr; -#endif /* NXAGENT_SERVER */ typedef struct _PictGradientStop { xFixed x; |