summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 10:17:22 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 10:17:22 +0000
commit3ffe3d7c4c36e262caf6c1d6ab7621960b4c9fcb (patch)
tree98e108b86cff1f19d01b3d7ebcc2cf19ac14fbc4
parent353b4a14be628d8ad8a7111b0c9a6226380c29f4 (diff)
downloadpango-3ffe3d7c4c36e262caf6c1d6ab7621960b4c9fcb.tar.gz
Fix background rendering being off in presence of rise attributes.
2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix background rendering being off in presence of rise attributes. svn path=/branches/pango-1-14/; revision=2149
-rw-r--r--ChangeLog5
-rw-r--r--pango/pango-renderer.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 39f875ba..2e289a95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-16 Behdad Esfahbod <behdad@gnome.org>
+
+ * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix
+ background rendering being off in presence of rise attributes.
+
2007-01-15 Tor Lillqvist <tml@novell.com>
* configure.in: Don't check for X and don't warn about missing
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index e6fc83f2..14a3fb74 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -515,7 +515,7 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer,
pango_renderer_draw_rectangle (renderer,
PANGO_RENDER_PART_BACKGROUND,
x + x_off,
- y - rise + overall_rect.y,
+ y + overall_rect.y,
glyph_string_width,
overall_rect.height);
}