keepaspect(3G)
keepaspect - specifies the aspect ratio of a graphics window
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME keepaspect - specifies the aspect ratio of a graphics window C SPECIFICATION void keepaspect(x, y) long x, y; PARAMETERS x expects the horizontal proportion of the aspect ratio. The value must be between 1 and 32767 (0x7fff), inclusive. y expects the vertical proportion of the aspect ratio. The value must be between 1 and 32767 (0x7fff), inclusive. DESCRIPTION keepaspect specifies the aspect ratio of a graphics window. Call it at the beginning of a graphics program. It takes effect when you call winopen. The resulting graphics window maintains the aspect ratio specified in keepaspect, even if it changes size. For example, keepaspect(1, 1) always results in a square graphics window. You can also call keepaspect in conjunction with winconstraints to modify the enforced aspect ratio after the window has been created. SEE ALSO fudge, winconstraints, winopen NOTE This routine is available only in immediate mode.