diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-01-16 20:20:35 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-01-16 20:20:35 +0000 |
commit | a0225fbf560de93c7b41acf9dbf01c9d99173af9 (patch) | |
tree | bb8f58010c8801a27545728393253b6c4722c6c4 /pango/pangowin32.c | |
parent | 0ee36da9691c2311d2134fd61f222ea3bed5827e (diff) | |
download | pango-a0225fbf560de93c7b41acf9dbf01c9d99173af9.tar.gz |
*.c, *.h: Replace preceding sequences of 8 spaces with tabs.
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
*.c, *.h: Replace preceding sequences of 8 spaces with tabs.
svn path=/trunk/; revision=2165
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r-- | pango/pangowin32.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c index 26ca290e..b34182ae 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -442,7 +442,7 @@ pango_win32_render_transformed (HDC hdc, xForm.eDx = matrix->x0; xForm.eDy = matrix->y0; if (!SetWorldTransform (hdc, &xForm)) - g_warning ("GetWorldTransform() failed"); + g_warning ("GetWorldTransform() failed"); } pango_win32_render (hdc, font, glyphs, x/PANGO_SCALE, y/PANGO_SCALE); @@ -538,14 +538,14 @@ max_glyph_width (PangoLayout *layout) PangoLayoutLine *line = l->data; for (r = line->runs; r; r = r->next) - { - PangoGlyphString *glyphs = ((PangoGlyphItem *)r->data)->glyphs; - int i; - - for (i = 0; i < glyphs->num_glyphs; i++) - if (glyphs->glyphs[i].geometry.width > max_width) - max_width = glyphs->glyphs[i].geometry.width; - } + { + PangoGlyphString *glyphs = ((PangoGlyphItem *)r->data)->glyphs; + int i; + + for (i = 0; i < glyphs->num_glyphs; i++) + if (glyphs->glyphs[i].geometry.width > max_width) + max_width = glyphs->glyphs[i].geometry.width; + } } return max_width; @@ -984,27 +984,27 @@ pango_win32_render_layout_line (HDC hdc, Polyline (hdc, points, 2); break; case PANGO_UNDERLINE_ERROR: - { - int point_x; - int counter = 0; + { + int point_x; + int counter = 0; int end_x = x + PANGO_PIXELS (x_off + ink_rect.x + ink_rect.width); - for (point_x = x + PANGO_PIXELS (x_off + ink_rect.x) - 1; - point_x <= end_x; - point_x += 2) - { + for (point_x = x + PANGO_PIXELS (x_off + ink_rect.x) - 1; + point_x <= end_x; + point_x += 2) + { points[0].x = point_x; points[1].x = MAX (point_x + 1, end_x); - if (counter) - points[0].y = points[1].y = y + 2; - else - points[0].y = points[1].y = y + 3; + if (counter) + points[0].y = points[1].y = y + 2; + else + points[0].y = points[1].y = y + 3; Polyline (hdc, points, 2); - counter = (counter + 1) % 2; - } - } + counter = (counter + 1) % 2; + } + } break; case PANGO_UNDERLINE_LOW: points[0].x = x + PANGO_PIXELS (x_off + ink_rect.x) - 1; @@ -1058,9 +1058,9 @@ pango_win32_render_layout (HDC hdc, baseline = pango_layout_iter_get_baseline (iter); pango_win32_render_layout_line (hdc, - line, - x + PANGO_PIXELS (logical_rect.x), - y + PANGO_PIXELS (baseline)); + line, + x + PANGO_PIXELS (logical_rect.x), + y + PANGO_PIXELS (baseline)); } while (pango_layout_iter_next_line (iter)); @@ -1167,7 +1167,7 @@ get_format_4_cmap (HDC hdc) struct format_4_cmap *table; /* FIXME: Could look here at the CRC for the font in the DC - and return a cached copy if the same */ + and return a cached copy if the same */ offset = get_cmap_offset (hdc, UNICODE_ENCODING_ID); if (offset == 0) |