Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ keepaspect(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



keepaspect(3G)                                                  keepaspect(3G)



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.


























                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026