Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ keepaspect(3g) — GL2 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

keepaspect()  —  Silicon Graphics Silicon Graphics

NAME

keepaspect - specifies the aspect ratio of a graphport

SPECIFICATION

C
keepaspect(x, y)
long x, y;

FORTRAN
subroutine keepas(x, y)
integer x, y

Pascal
procedure keepaspect(x, y: longint);

DESCRIPTION

keepaspect specifies the aspect ratio of a graphport.  It is called at the beginning of a graphics program that will be run with the window manager.  It takes effect when getport is called.  The resulting graphport will maintain the aspect ratio specified in keepaspect, even if its size is changed.  For example, keepaspect(1, 1) will always result in a square graphport.  If getport is not called or if the system is not running the window manager, keepaspect will be ignored. 

SEE ALSO

getport, fudge

NOTE

This command can be used only in immediate mode. 

Version 2.3  —  July 04, 1985

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