aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-04-20 22:02:56 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-05-11 18:53:27 +0200
commita70c8be1d21ea6d974d5ac842c1b0b334f2d6573 (patch)
treec039dc5946984c7cd43c18e1a85c98bc95e8724d /nx-X11
parent9f59723a33b6dd83e47a9cf65c8368a3c6cf9e00 (diff)
downloadnx-libs-a70c8be1d21ea6d974d5ac842c1b0b334f2d6573.tar.gz
nx-libs-a70c8be1d21ea6d974d5ac842c1b0b334f2d6573.tar.bz2
nx-libs-a70c8be1d21ea6d974d5ac842c1b0b334f2d6573.zip
Render.c: Fix: init variable once outside the loop
otherwise it would be reinitialized for every interation. This was errornously moved in commit 56aaea90b4ee442b57f1370e3cafe0418deadc1d
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c
index d21ae98c9..98722e48a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
@@ -2027,9 +2027,10 @@ void nxagentAddGlyphs(GlyphSetPtr glyphSet, Glyph *gids, xGlyphInfo *gi,
* as synchronized.
*/
+ Glyph *tempGids = gids;
+
for (int i = 0; i < nglyphs; i++)
{
- Glyph *tempGids = gids;
GlyphRefPtr gr = FindGlyphRef(&glyphSet -> hash, *tempGids, 0, 0);
if (gr && gr -> glyph != DeletedGlyph)