comparison src/histogram.c @ 1431:7e180091e0b7

More gboolean and tidy up.
author zas_
date Sat, 14 Mar 2009 11:26:43 +0000
parents 5f21db044ec4
children cf4029d10d38
comparison
equal deleted inserted replaced
1430:7718e351bc45 1431:7e180091e0b7
211 histogram->grid_color.B, 211 histogram->grid_color.B,
212 histogram->grid_color.A); 212 histogram->grid_color.A);
213 } 213 }
214 } 214 }
215 215
216 gint histogram_draw(Histogram *histogram, const HistMap *histmap, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height) 216 gboolean histogram_draw(Histogram *histogram, const HistMap *histmap, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height)
217 { 217 {
218 /* FIXME: use the coordinates correctly */ 218 /* FIXME: use the coordinates correctly */
219 gint i; 219 gint i;
220 gulong max = 0; 220 gulong max = 0;
221 gdouble logmax; 221 gdouble logmax;
222 gint combine = (HISTMAP_SIZE - 1) / width + 1; 222 gint combine = (HISTMAP_SIZE - 1) / width + 1;
223 gint ypos = y + height; 223 gint ypos = y + height;
224 224
225 if (!histogram || !histmap) return 0; 225 if (!histogram || !histmap) return FALSE;
226 226
227 /* Draw the grid */ 227 /* Draw the grid */
228 histogram_vgrid(histogram, pixbuf, x, y, width, height); 228 histogram_vgrid(histogram, pixbuf, x, y, width, height);
229 histogram_hgrid(histogram, pixbuf, x, y, width, height); 229 histogram_hgrid(histogram, pixbuf, x, y, width, height);
230 230