From 1e2e1338cb793275831c28a0e241bf24cbe5c4fd Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Fri, 13 Jan 2006 18:21:00 +0000 Subject: [PATCH] fixing cairo text drawing bug (patch from cairo trunk) --- gfx/cairo/cairo/src/cairo-win32-font.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/cairo/cairo/src/cairo-win32-font.c b/gfx/cairo/cairo/src/cairo-win32-font.c index d97c3a4cce2..3343abfd4f0 100644 --- a/gfx/cairo/cairo/src/cairo-win32-font.c +++ b/gfx/cairo/cairo/src/cairo-win32-font.c @@ -894,19 +894,21 @@ _flush_glyphs (cairo_glyph_state_t *state) cairo_status_t status; int dx = 0; WCHAR * elements; + int * dx_elements; status = _cairo_array_append (&state->dx, &dx); if (status) return status; elements = _cairo_array_index (&state->glyphs, 0); + dx_elements = _cairo_array_index (&state->dx, 0); if (!ExtTextOutW (state->hdc, state->start_x, state->last_y, ETO_GLYPH_INDEX, NULL, elements, state->glyphs.num_elements, - (int *)state->dx.elements)) { + dx_elements)) { return _cairo_win32_print_gdi_error ("_flush_glyphs"); }