[pango/pango2: 10/37] renderer: Fix drawing of backgrounds
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 10/37] renderer: Fix drawing of backgrounds
- Date: Tue, 21 Jun 2022 18:11:33 +0000 (UTC)
commit 6e3af34fa13f12eb96d8fe48b61a64d85646579b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 17 21:09:23 2022 -0400
renderer: Fix drawing of backgrounds
pango/pango-renderer.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 61e92b07..5c94be74 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -499,6 +499,7 @@ add_strikethrough (PangoRenderer *renderer,
}
static void pango_renderer_draw_runs (PangoRenderer *renderer,
+ PangoLine *line,
GSList *runs,
const char *text,
int x,
@@ -539,7 +540,7 @@ pango_renderer_draw_line (PangoRenderer *renderer,
state.overline = PANGO_LINE_STYLE_NONE;
state.strikethrough = PANGO_LINE_STYLE_NONE;
- pango_renderer_draw_runs (renderer, line->runs, line->data->text, x, y);
+ pango_renderer_draw_runs (renderer, line, line->runs, line->data->text, x, y);
/* Finish off any remaining underlines */
draw_underline (renderer, &state);
@@ -599,6 +600,7 @@ pango_renderer_draw_lines (PangoRenderer *renderer,
static void
pango_renderer_draw_runs (PangoRenderer *renderer,
+ PangoLine *line,
GSList *runs,
const char *text,
int x,
@@ -660,9 +662,7 @@ pango_renderer_draw_runs (PangoRenderer *renderer,
{
if (!got_overall)
{
-#ifdef EXTENTS
- pango_layout_line_get_extents (line, NULL, &overall_rect);
-#endif
+ pango_line_get_extents (line, NULL, &overall_rect);
got_overall = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]