Do not return values from a function returning void

This commit is contained in:
Emmanuele Bassi 2010-06-27 11:28:44 +01:00
parent 7f2e4c38a9
commit 5789ea35cc

View File

@ -50,11 +50,14 @@
**/ **/
void void
gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf, gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
GdkBitmap *bitmap, GdkBitmap *bitmap,
int src_x, int src_y, int src_x,
int dest_x, int dest_y, int src_y,
int width, int height, int dest_x,
int alpha_threshold) int dest_y,
int width,
int height,
int alpha_threshold)
{ {
GdkGC *gc; GdkGC *gc;
GdkColor color; GdkColor color;
@ -63,10 +66,10 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
int start, start_status; int start, start_status;
int status; int status;
g_return_val_if_fail (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB, NULL); g_return_if_fail (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB);
g_return_val_if_fail (gdk_pixbuf_get_n_channels (pixbuf) == 3 || g_return_if_fail (gdk_pixbuf_get_n_channels (pixbuf) == 3 ||
gdk_pixbuf_get_n_channels (pixbuf) == 4, NULL); gdk_pixbuf_get_n_channels (pixbuf) == 4);
g_return_val_if_fail (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8, NULL); g_return_if_fail (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8);
if (width == -1) if (width == -1)
width = gdk_pixbuf_get_width (pixbuf); width = gdk_pixbuf_get_width (pixbuf);