aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/0204_nxagent_repaint-solidpict.full.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0204_nxagent_repaint-solidpict.full.patch')
-rw-r--r--debian/patches/0204_nxagent_repaint-solidpict.full.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/debian/patches/0204_nxagent_repaint-solidpict.full.patch b/debian/patches/0204_nxagent_repaint-solidpict.full.patch
deleted file mode 100644
index fd97bda3d..000000000
--- a/debian/patches/0204_nxagent_repaint-solidpict.full.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-Description: Fix repainting of SolidFill pictures with libcairo > 1.12.x
-Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
---- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
-+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
-@@ -2689,11 +2689,17 @@ void nxagentReconnectPicture(pointer p0,
- #endif
- }
-
-- if (!pForm)
-+ if (!pForm && pPicture->pSourcePict)
- {
-- *pBool = False;
--
-- return;
-+ /*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;
- }
-
- #ifdef TEST
---- a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
-+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
-@@ -1137,6 +1137,10 @@ CreateSolidPicture (Picture pid, xRender
- }
- 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;
- }
-
---- a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
-+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
-@@ -95,6 +95,7 @@ typedef struct _PictTransform {
- typedef struct _PictSolidFill {
- unsigned int type;
- CARD32 color;
-+ xRenderColor fullColor;
- } PictSolidFill, *PictSolidFillPtr;
-
- typedef struct _PictGradientStop {