From: <enl...@li...> - 2005-03-20 21:56:47
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/edje Dir : e17/libs/edje/src/bin Modified Files: edje_thumb.c Log Message: warning fixes =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_thumb.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- edje_thumb.c 9 Jan 2005 09:50:16 -0000 1.1 +++ edje_thumb.c 20 Mar 2005 21:56:40 -0000 1.2 @@ -1,6 +1,6 @@ #include "edje_thumb.h" -static void save_pixels(int *pixels, int w, int h, char *out); +static void save_pixels(const int *pixels, int w, int h, char *out); static void args_parse(void); static void help_show(void); static int signal_exit(void *data, int ev_type, void *ev); @@ -58,7 +58,7 @@ } else { - int *pixels; + const int *pixels; pixels = ecore_evas_buffer_pixels_get(ee); save_pixels(pixels, w, h, outfile); @@ -73,11 +73,11 @@ } static void -save_pixels(int *pixels, int w, int h, char *out) +save_pixels(const int *pixels, int w, int h, char *out) { Imlib_Image im; - im = imlib_create_image_using_data(w, h, pixels); + im = imlib_create_image_using_data(w, h, (DATA32 *) pixels); imlib_context_set_image(im); imlib_image_set_irrelevant_alpha(0); imlib_image_set_has_alpha(1); @@ -202,7 +202,7 @@ frame_grab(void *data) { char buf[4096]; - int *pixels; + const int *pixels; pixels = ecore_evas_buffer_pixels_get(ee); snprintf(buf, sizeof(buf), outfile, frnum); |