summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-04-23 23:25:39 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-04-27 18:57:06 -0700
commit1939043a34c47d2cff63aac3909f31f08aa6ab84 (patch)
tree74d1b33828871cd0f6a3355e9df405435261a7ff
parent5db125883f7d7d4501b0e7c720ffd38f2b92a538 (diff)
rootless: Fix a typo in RootlessGlyphs which resulted in a garbage value
Found by clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commit 4944de24849a109c65f1b353bc12e44e90a1211d)
-rw-r--r--miext/rootless/rootlessScreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c
index 510d6fdb1..3211c0fe2 100644
--- a/miext/rootless/rootlessScreen.c
+++ b/miext/rootless/rootlessScreen.c
@@ -325,7 +325,7 @@ RootlessGlyphs(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
box.x1 = x - glyph->info.x;
box.y1 = y - glyph->info.y;
box.x2 = box.x1 + glyph->info.width;
- box.y2 = box.y2 + glyph->info.height;
+ box.y2 = box.y1 + glyph->info.height;
x += glyph->info.xOff;
y += glyph->info.yOff;