use G_SQRT2 instead of the golden ratio (see bug #124073).
2004-01-10 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale_zoom_fraction): use G_SQRT2 instead of the golden ratio (see bug #124073).
This commit is contained in:
parent
15cf8858e0
commit
cb80b0448b
2 changed files with 8 additions and 8 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2004-01-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell-scale.c
|
||||
(gimp_display_shell_scale_zoom_fraction): use G_SQRT2 instead of
|
||||
the golden ratio (see bug #124073).
|
||||
|
||||
2004-01-10 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gui/layers-commands.c (layers_alpha_to_selection_cmd_callback):
|
||||
|
|
|
|||
|
|
@ -74,11 +74,6 @@ gimp_display_shell_scale_zoom_fraction (GimpZoomType zoom_type,
|
|||
{
|
||||
gdouble ratio;
|
||||
|
||||
/* The golden ratio is (1 + sqrt 5)/2. It has some nice
|
||||
* properties which make it a good choice for a zoom ratio.
|
||||
*/
|
||||
#define GOLDEN_RATIO 1.618033989
|
||||
|
||||
g_return_if_fail (scalesrc != NULL);
|
||||
g_return_if_fail (scaledest != NULL);
|
||||
|
||||
|
|
@ -87,12 +82,11 @@ gimp_display_shell_scale_zoom_fraction (GimpZoomType zoom_type,
|
|||
switch (zoom_type)
|
||||
{
|
||||
case GIMP_ZOOM_IN:
|
||||
|
||||
ratio *= GOLDEN_RATIO;
|
||||
ratio *= G_SQRT2;
|
||||
break;
|
||||
|
||||
case GIMP_ZOOM_OUT:
|
||||
ratio /= GOLDEN_RATIO;
|
||||
ratio /= G_SQRT2;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue