[cairo-commit] cairo/test move-to-show-surface.c,1.4,1.5

Carl Worth commit at pdx.freedesktop.org
Wed Apr 6 13:01:15 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv23105/test

Modified Files:
	move-to-show-surface.c 
Log Message:

        * src/cairo.h: Make handling of unsigned char* vs. char*
        consistent. Change all parameters that are actual string data from
        unsigned char* to char* (cairo_text_extents, cairo_show_text,
        cairo_text_path). Change all data buffers from char* to unsigned
        char* (cairo_write_func_t).

        * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs):
        * src/cairo-ft-font.c: (_cairo_ft_font_text_to_glyphs):
        * src/cairo-font.c: (_cairo_font_text_to_glyphs):
        * src/cairo-atsui-font.c: (_cairo_atsui_font_text_to_glyphs):
        * src/cairoint.h:
        * src/cairo.c: (cairo_text_extents), (cairo_show_text),
        (cairo_text_path): Track changes from unsigned char* to
        char*. Convert to unsigned only at the internal interface to
        unicode processing.

        * test/move-to-show-surface.c: (draw):
        * src/cairo-output-stream.c: (_cairo_output_stream_printf),
        (stdio_write): Track change from char* to unsigned char*.


Index: move-to-show-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/test/move-to-show-surface.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- move-to-show-surface.c	2 Apr 2005 14:00:32 -0000	1.4
+++ move-to-show-surface.c	6 Apr 2005 20:01:13 -0000	1.5
@@ -63,7 +63,7 @@
     int i;
 
     for (i=0; i < 4; i++) {
-	surface = cairo_surface_create_for_image ((char *) &colors[i],
+	surface = cairo_surface_create_for_image ((unsigned char *) &colors[i],
 						  CAIRO_FORMAT_ARGB32, 1, 1, 4);
 	cairo_move_to (cr, i % 2, i / 2);
 	cairo_show_surface (cr, surface, 1, 1);




More information about the cairo-commit mailing list