mirror of https://github.com/GNOME/gimp.git
this should work on 64bit system as well.
2003-04-04 Sven Neumann <sven@gimp.org> * libgimpbase/gimputils.c (gimp_memsize_to_string): this should work on 64bit system as well.
This commit is contained in:
parent
93b50614b3
commit
3645cb7159
|
@ -1,3 +1,8 @@
|
|||
2003-04-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpbase/gimputils.c (gimp_memsize_to_string): this should
|
||||
work on 64bit system as well.
|
||||
|
||||
2003-04-04 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimpbase/gimplimits.h: reduced GIMP_MAX_IMAGE_SIZE to 2^18.
|
||||
|
|
|
@ -131,10 +131,12 @@ gimp_memsize_to_string (gulong memsize)
|
|||
}
|
||||
else if (memsize < 1024 * 1024 * 10)
|
||||
{
|
||||
return g_strdup_printf (_("%.2f MB"), (gdouble) memsize / 1024.0 / 1024.0);
|
||||
memsize /= 1024;
|
||||
return g_strdup_printf (_("%.2f MB"), (gdouble) memsize / 1024.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return g_strdup_printf (_("%.1f MB"), (gdouble) memsize / 1024.0 / 1024.0);
|
||||
memsize /= 1024;
|
||||
return g_strdup_printf (_("%.1f MB"), (gdouble) memsize / 1024.0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue