mirror of https://github.com/GNOME/gimp.git
app/gimpimage.c app/layers_dialog.c
Mon Dec 11 22:52:43 GMT 2000 Andy Thomas <alt@gimp.org> * app/gimpimage.c * app/layers_dialog.c Backed out some changes that caused problems with the Nav preview and small sized images.
This commit is contained in:
parent
d7c90b6d67
commit
c538b3fe37
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -3697,7 +3697,7 @@ gimp_image_construct_composite_preview (GimpImage *gimage,
|
|||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
list = gimage->layers;
|
||||
ratio = MIN (1.0, (gdouble) width / (gdouble) gimage->width);
|
||||
ratio = (gdouble) width / (gdouble) gimage->width;
|
||||
|
||||
switch (gimp_image_base_type (gimage))
|
||||
{
|
||||
|
|
|
@ -988,10 +988,10 @@ layers_dialog_preview_extents (void)
|
|||
/* Get the image width and height variables, based on the gimage */
|
||||
if (gimage->width > gimage->height)
|
||||
layersD->ratio =
|
||||
MIN (1.0, (gdouble) preview_size / (gdouble) gimage->width);
|
||||
(gdouble) preview_size / (gdouble) gimage->width;
|
||||
else
|
||||
layersD->ratio =
|
||||
MIN (1.0, (gdouble) preview_size / (gdouble) gimage->height);
|
||||
(gdouble) preview_size / (gdouble) gimage->height;
|
||||
|
||||
if (preview_size)
|
||||
{
|
||||
|
|
|
@ -988,10 +988,10 @@ layers_dialog_preview_extents (void)
|
|||
/* Get the image width and height variables, based on the gimage */
|
||||
if (gimage->width > gimage->height)
|
||||
layersD->ratio =
|
||||
MIN (1.0, (gdouble) preview_size / (gdouble) gimage->width);
|
||||
(gdouble) preview_size / (gdouble) gimage->width;
|
||||
else
|
||||
layersD->ratio =
|
||||
MIN (1.0, (gdouble) preview_size / (gdouble) gimage->height);
|
||||
(gdouble) preview_size / (gdouble) gimage->height;
|
||||
|
||||
if (preview_size)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue