Mercurial > geeqie
diff src/thumb.c @ 1000:4fe8f9656107
For the sake of consistency, use glib basic types everywhere.
author | zas_ |
---|---|
date | Tue, 26 Aug 2008 22:22:51 +0000 |
parents | 21e324dcd78c |
children | dd311dae857a |
line wrap: on
line diff
--- a/src/thumb.c Tue Aug 26 21:19:33 2008 +0000 +++ b/src/thumb.c Tue Aug 26 22:22:51 2008 +0000 @@ -186,16 +186,16 @@ { gint w, h; - if (((double)tl->max_w / pw) < ((double)tl->max_h / ph)) + if (((gdouble)tl->max_w / pw) < ((gdouble)tl->max_h / ph)) { w = tl->max_w; - h = (double)w / pw * ph; + h = (gdouble)w / pw * ph; if (h < 1) h = 1; } else { h = tl->max_h; - w = (double)h / ph * pw; + w = (gdouble)h / ph * pw; if (w < 1) w = 1; } @@ -504,7 +504,7 @@ } #if 0 -gint thumb_from_xpm_d(const char **data, gint max_w, gint max_h, GdkPixmap **pixmap, GdkBitmap **mask) +gint thumb_from_xpm_d(const gchar **data, gint max_w, gint max_h, GdkPixmap **pixmap, GdkBitmap **mask) { GdkPixbuf *pixbuf; gint w, h;