ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/x11image.c
(Generate patch)

Comparing ray/src/px/x11image.c (file contents):
Revision 1.23 by greg, Mon May 6 13:14:17 1991 UTC vs.
Revision 1.24 by greg, Thu May 23 12:00:38 1991 UTC

# Line 668 | Line 668 | COLR  *scan;
668                  } else if (xmax > ymax) {
669                          iconwidth = ICONSIZ;
670                          iconheight = ICONSIZ*ymax/xmax;
671 +                        if (iconheight < 1)
672 +                                iconheight = 1;
673                  } else {
674                          iconwidth = ICONSIZ*xmax/ymax;
675 +                        if (iconwidth < 1)
676 +                                iconwidth = 1;
677                          iconheight = ICONSIZ;
678                  }
679                  ynext = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines