diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index 25d367e..5f1e471 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -1980,7 +1980,7 @@ _cairo_pdf_surface_emit_bitmap_glyph (ca cairo_status_t status; cairo_image_surface_t *image; unsigned char *row, *byte; - int rows, cols, bytes_per_row; + int rows, cols; status = _cairo_scaled_glyph_lookup (scaled_font, glyph_index, @@ -2025,7 +2025,6 @@ _cairo_pdf_surface_emit_bitmap_glyph (ca _cairo_output_stream_printf (surface->output, "ID "); - bytes_per_row = (image->width + 7) / 8; for (row = image->data, rows = image->height; rows; row += image->stride, rows--) { for (byte = row, cols = (image->width + 7) / 8; cols; byte++, cols--) { unsigned char output_byte = CAIRO_BITSWAP8_IF_LITTLE_ENDIAN (*byte); diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index d02b251..daf6a9d 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -572,7 +572,7 @@ _cairo_ps_surface_emit_bitmap_glyph_data cairo_status_t status; cairo_image_surface_t *image; unsigned char *row, *byte; - int rows, cols, bytes_per_row; + int rows, cols; status = _cairo_scaled_glyph_lookup (scaled_font, glyph_index, @@ -613,7 +613,6 @@ _cairo_ps_surface_emit_bitmap_glyph_data _cairo_output_stream_printf (surface->final_stream, " /DataSource {<"); - bytes_per_row = (image->width + 7) / 8; for (row = image->data, rows = image->height; rows; row += image->stride, rows--) { for (byte = row, cols = (image->width + 7) / 8; cols; byte++, cols--) { unsigned char output_byte = CAIRO_BITSWAP8_IF_LITTLE_ENDIAN (*byte); diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c index d4c60b6..a4fb865 100644 --- a/src/cairo-svg-surface.c +++ b/src/cairo-svg-surface.c @@ -561,7 +561,7 @@ _cairo_svg_document_emit_bitmap_glyph_da cairo_scaled_glyph_t *scaled_glyph; cairo_status_t status; unsigned char *row, *byte; - int rows, cols, bytes_per_row; + int rows, cols; int x, y, bit; status = _cairo_scaled_glyph_lookup (scaled_font, @@ -582,7 +582,6 @@ _cairo_svg_document_emit_bitmap_glyph_da _cairo_output_stream_printf (document->xml_node_glyphs, "xml_node_glyphs, " transform", ">/n", &image->base.device_transform); - bytes_per_row = (image->width + 7) / 8; for (y = 0, row = image->data, rows = image->height; rows; row += image->stride, rows--, y++) { for (x = 0, byte = row, cols = (image->width + 7) / 8; cols; byte++, cols--) { unsigned char output_byte = CAIRO_BITSWAP8_IF_LITTLE_ENDIAN (*byte);