aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Render.c
Commit message (Collapse)AuthorAgeFilesLines
* nxagent: delete trailing whitespace in many filesUlrich Sibiller2023-04-271-15/+15
| | | | | | Please note that the NX*.c files still have trailing whitespace at many locations. We keep it like that on purpose to make comparisons to the files they are derived from easier.
* nxagent: make nxagentAlpha* BooleansUlrich Sibiller2021-06-081-2/+2
|
* Render.c: Init BoxRecUlrich Sibiller2021-01-151-1/+1
| | | | PVS Studio: "V614 Potentially uninitialized variable 'glyphBox.*' used."
* Render.c: improve Boolean handling of nxagentCheckPictureRemoteValueUlrich Sibiller2021-01-151-12/+12
|
* nxagent: handle RegionNil macro as BooleanUlrich Sibiller2021-01-151-1/+1
| | | | just as the rest of the Xserver is alsow doing
* nxagent: treat all Traps as Booleans everywhereUlrich Sibiller2021-01-151-1/+1
|
* nxagent: make all traps BooleansUlrich Sibiller2020-05-071-2/+2
| | | | and use True/False instead of 1/0
* Render.c: describe function purposeUlrich Sibiller2020-05-071-0/+1
| | | | (from nxagent changelog)
* Render.c: replace two while loops by shorter for loopsUlrich Sibiller2020-05-071-9/+3
|
* nxagent: simplify nxagentFreeRegion macroUlrich Sibiller2020-05-071-4/+4
| | | | | | Does not require two parameters. It could be replaced by RegionDestroy() entirely but we leave it to have a match to nxagentCreateRegion().
* Render.c: remove some more unused functionsUlrich Sibiller2019-09-291-219/+0
| | | | | | nxagentTriangles nxagentTriFan nxagentTriStrip
* Render.c: remove lots of superflous empty linesUlrich Sibiller2019-09-291-84/+1
| | | | Improve code readability
* Render.c: reformat commentsUlrich Sibiller2019-09-291-43/+30
|
* Render.c: Code simplificationsUlrich Sibiller2019-09-291-172/+89
| | | | Save some lines...
* Render.c: remove empty lines around XSync callsUlrich Sibiller2019-09-291-36/+0
| | | | make the code more readable
* Render.c: make nxagentPrintFormat a NOP in normal modeUlrich Sibiller2019-09-291-49/+2
| | | | This way we can remove lots of #ifdef DEBUGs
* nxagent: simplify nxagentRenderRealizeCursorUlrich Sibiller2019-09-291-26/+14
| | | | also drop unused return code
* Render.c. simplify nxagentMatchingFormatsUlrich Sibiller2019-09-291-3/+1
|
* Render.c: fix broken commentUlrich Sibiller2019-09-291-2/+2
|
* Render.c: drop unused nxagentDestroyPictureClipUlrich Sibiller2019-09-291-9/+0
|
* Render.c: drop unused nxagentRasterizeTrapezoidUlrich Sibiller2019-09-291-11/+0
|
* Render.c: drop unused nxagentValidatePictureUlrich Sibiller2019-09-291-9/+0
|
* Render.c: use SAFE_freeUlrich Sibiller2019-08-061-2/+3
|
* Revert "nxagent: rework Bool handling"Ulrich Sibiller2019-02-151-3/+3
| | | | | | | | | | | | This reverts commit 16cd2bbe1c4425e3fa557f9ca0723aa94a50b071. It turned out that I had missed some of the Booleans being actually tristate variables. I think I can fix this (they do not need to be tristate) but I revert this for now to get back to a working state (there are reports about non-working fullscreen mode and reconnect problems). Refers to ArcticaProject/nx-libs#772
* nxagent: rework Bool handlingUlrich Sibiller2019-02-111-3/+3
| | | | drop "== False", "== 0", "== True" and "== 0" for nxagentOptions and Traps
* Render.c: improve Bool usageUlrich Sibiller2018-10-221-6/+6
|
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-261-3/+3
|
* nx-X11/programs/Xserver/hw/nxagent/Render.c: use macros obtaining values ↵Mihai Moldovan2017-09-131-10/+10
| | | | | | | | | | | | | | | | from _XPrivDisplay instead of the other Display structure directly. Fixes: ArcticaProject/nx-libs#512 It's unclear to me why (Display*)(dpy)->bitmap_pad and (_XPrivDisplay)(dpy)->bitmap_pad produce different results. Technically, Display is referencing the _XDisplay/Display structure defined in Xlibint.h, while _XPrivDisplay is a typedef'd pointer to the (anonymous) structure defined in Xlib.h, since we're not defining the XLIB_ILLEGAL_ACCESS macro. The weird part is that both should be equal when it comes to its bitmap_pad, byte_order and bitmap_bit_order members.
* nx-X11/programs/Xserver/Render.c: Re-introduce nxagentGlyphsCleanup() from ↵Mike Gabriel2017-08-251-0/+249
| | | | libNX_Xrender's formerly removed XRenderGlyphsCleanup().
* Render.c: Improve situation for multiple trapezoid requests.Oleksandr Shneyder2017-07-311-14/+1
| | | | | | | | | | | | | | | | | | | This change improves the situation in nxagent for the following issue: ``` "XRenderCompositeTrapezoids builds RenderTrapezoids requests to composite the specified list of trapezoids to dst. XRenderCompositeTrapezoids will split the list of trapezoids to build requests no larger than the maximum request size supported by the server. This can create rendering artifacts as the precompositing done by RenderTrapezoids when a maskFormat is specified cannot span multiple requests." ``` For more information see: https://lists.freedesktop.org/archives/xorg/2008-June/036124.html Fixes ArcticaProject/nx-libs#336.
* Revert "NXpicturestr_PictSolidFill.h: Drop file and revert db8705. Not an ↵Mike Gabriel2017-04-211-5/+11
| | | | | | | | | | | | issue anymore nowadays." This reverts commit 6c8c950258cf0da0cf24c5e80c2216914ac282a4. Fixes ArcticaProject/nx-libs#433. This patch is still a candidate for being re-implemented without extending the _PictSolidFill struct, but for now, we'll have to re-introduce commit db8705 for the sake of having fonts readable after resumption of remote NX sessions.
* hw/nxagent/BitmapUtils.c: Derive from utilbitmap.c in deprecated libXfont1 ↵Mike Gabriel2017-04-101-3/+3
| | | | and ship as copy-of-code with nxagent.
* NXpicturestr_PictSolidFill.h: Drop file and revert db8705. Not an issue ↵Mike Gabriel2017-04-061-11/+5
| | | | anymore nowadays.
* Per-file copyright notices: Update copyright information in file headers ↵Mike Gabriel2016-07-061-7/+15
| | | | that NoMachine placed there own copyright statement in.
* nx-X11/programs/Xserver: Drop {X,x}alloc() macros, use malloc() instead.Mike Gabriel2016-07-021-3/+3
|
* nx-X11/programs/Xserver: Drop {X,x}free() macros, use free() instead.Mike Gabriel2016-07-021-2/+2
| | | | Fixes ArcticaProject/nx-libs#105
* Xserver/include/protocol-versions.h: Switch to having an Xserver-specific ↵Mike Gabriel2016-07-021-11/+12
| | | | header file containing all use protocol versions.
* finally drop libNX_XextUlrich Sibiller2016-07-011-1/+1
|
* hw/nxagent/NX{glyphstr,picturestr}.h: Don't ship the complete header files ↵Mike Gabriel2016-06-251-2/+2
| | | | in nxagent's code base. Rather replace structures we need modified only.
* NXrenderint.h: Move into subfolder X11/include/ and rename to ↵Mike Gabriel2016-06-251-1/+1
| | | | Xrender_nxagent.h. (Like we have done with all other non-public Xlib related header files that are required for building nxagent.
* nx-X11/programs/Xserver: Include nxcomp{,ext,shad} headers like one would do ↵Mike Gabriel2016-06-131-1/+1
| | | | with system-wide shared libraries.
* Rename region macros to eliminate screen argumentMike Gabriel2016-05-021-9/+9
| | | | | | | | | | | | | | | | | | | | | This is a huge mechanical patch and a few small fixups required to finish the job. They were reviewed separately, but because the server does not build without both pieces, I've merged them together at this time. The mechanical changes were performed by running the included 'fix-region' script over the whole nx-X11/programs/Xserver tree: $ cd nx-X11/programs/Xserver && ( git ls-files | grep -v '^fix-' | xargs ./fix-region; ) And then, the white space errors in the resulting patch were fixed using the provided fix-patch-whitespace script. $ sh ./fix-patch-whitespace Thanks to Jamey Sharp for the mighty fine sed-generating sed script. v1: Keith Packard <keithp@keithp.com> (X.Org xserver commit: 2dc138922b7588515d5f2447e4b9dcdc0bef15e0) v2: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> (apply fix-region script to nx-libs)
* library-cleanup: Don't build libNX_Xrender anymore. Use system's libXrender ↵Mike Gabriel2016-04-201-3/+1
| | | | shared library.
* Replace 'pointer' type with 'void *'Keith Packard2015-12-281-6/+6
| | | | | | | | | | This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer' is used throughout the X server for other things, and having duplicate names generates compiler warnings. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net> Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* NXAGENT_UPGRADE code cleanup:Mike Gabriel2015-04-161-60/+0
| | | | | | | | | | | NX agent contains/ed two build trees. An old one (probably pre-3.x.y) and a "newer" one. The "newer" code tree used to become enabled by setting NXUpgradeAgentServer in nx-X11/config/cf/host.def to YES. As building the NXUpgradeAgentServer has been the default for years now, we drop all code that does not get used at build time for NXUpgradeAgentServer == YES (i.e., the code that belongs to the pre-3.x.y phase of NX agent).
* nx-X11: add more NULL guards to TEST and DEBUG sections of Render.c.Mihai Moldovan2015-03-291-65/+90
| | | | Cherry-picked from branch 3.5.0.x.
* Several fixes for building debug versions of NX ↵Mihai Moldovan2015-02-131-4/+5
| | | | | | | | | | | | | | | | | | (990_fix-DEBUG-and-TEST-builds.full.patch). (1) In nx-X11/programs/Xserver/dix: Fix several compile errors when specifying -DDEBUG globally. Previous GCC versions were more liberal and the code thus compiled. Also initialize/reset a count variable correctly. (2) In nx-X11/programs/Xserver/hw/nxagent/Render.c: Check for pSrc->pDrawable to exist instead of having nxagent segfault when it does not. This enables the possibility of compiling all nxagent modules in TEST mode.
* Fix repainting of SolidFill pictures with libcairo > 1.12.x ↵Oleksandr Shneyder2015-02-101-5/+11
| | | | (204_nxagent_repaint-solidpict.full.patch).
* Revert "release 3.5.0.19"Mike Gabriel2013-03-281-11/+5
| | | | This reverts commit e77bf36d9afbc7e56522574b06217d57c11dd095.
* release 3.5.0.19Mike Gabriel2013-03-281-5/+11
|