diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-01-08 22:45:51 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-01-08 22:45:51 +0000 |
commit | 82cc8362b2a84b3a6f8e584a6a8b53e68fa1cc61 (patch) | |
tree | d6ee06b6ad294fac6cbd2d9d42dc23c6fbb60bf5 /pango/pango-renderer.c | |
parent | 8e88fecfffdc0a5f25dc98bcc2fa79dac0938670 (diff) | |
download | pango-82cc8362b2a84b3a6f8e584a6a8b53e68fa1cc61.tar.gz |
Don't introduce bitfields in public struct and rename PangoAnalysis.
2007-01-08 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/glyphs.sgml:
* docs/tmpl/main.sgml:
* pango/pango-context.c (itemize_state_add_character):
* pango/pango-item.h:
* pango/pango-layout.c (pango_layout_run_get_extents):
* pango/pango-renderer.c (pango_renderer_draw_layout_line):
Don't introduce bitfields in public struct and rename PangoAnalysis.
centered_baseline to PangoAnalysis.flags and introduce
PANGO_ANALYSIS_FLAGS_CENTERED_BASELINE.
svn path=/trunk/; revision=2134
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r-- | pango/pango-renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c index b4c4728e..5b5b71ba 100644 --- a/pango/pango-renderer.c +++ b/pango/pango-renderer.c @@ -481,7 +481,7 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer, PangoRectangle ink_rect, *ink = NULL; PangoRectangle logical_rect, *logical = NULL; - if (run->item->analysis.centered_baseline) + if (run->item->analysis.flags & PANGO_ANALYSIS_FLAG_CENTERED_BASELINE) logical = &logical_rect; pango_renderer_prepare_run (renderer, run); @@ -515,7 +515,7 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer, state.logical_rect_end = x + x_off + glyph_string_width; - if (run->item->analysis.centered_baseline) + if (run->item->analysis.flags & PANGO_ANALYSIS_FLAG_CENTERED_BASELINE) rise += logical_rect.y + logical_rect.height / 2; |