draw_textwidth() can use a const char *

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-25 15:55:45 +01:00
parent 57c36df181
commit f00b0b850e
2 changed files with 2 additions and 2 deletions

View File

@ -753,7 +753,7 @@ draw_rotate(DrawCtx *ctx, Drawable dest, int dest_w, int dest_h,
* \return text width
*/
unsigned short
draw_textwidth(Display *disp, font_t *font, char *text)
draw_textwidth(Display *disp, font_t *font, const char *text)
{
cairo_surface_t *surface;
cairo_t *cr;

View File

@ -135,7 +135,7 @@ void draw_image(DrawCtx *, int, int, int, const char *);
void draw_image_from_argb_data(DrawCtx *, int, int, int, int, int, unsigned char *);
area_t draw_get_image_size(const char *filename);
void draw_rotate(DrawCtx *, Drawable, int, int, double, int, int);
unsigned short draw_textwidth(Display *, font_t *, char *);
unsigned short draw_textwidth(Display *, font_t *, const char *);
Alignment draw_align_get_from_str(const char *);
Bool draw_color_new(Display *, int, const char *, XColor *);
void draw_style_init(Display *, int, cfg_t *, style_t *, style_t *);