Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rocky!rokicki From: rokicki@rocky.STANFORD.EDU (Tomas Rokicki) Newsgroups: comp.sys.amiga Subject: Re: VT100R2.7 fix: allow more than 24 rows (31 for PAL Amiga) Message-ID: <660@rocky.STANFORD.EDU> Date: Mon, 12-Oct-87 00:32:58 EDT Article-I.D.: rocky.660 Posted: Mon Oct 12 00:32:58 1987 Date-Received: Tue, 13-Oct-87 02:15:09 EDT References: <1533@sics.se> Reply-To: rokicki@rocky.UUCP (Tomas Rokicki) Organization: Stanford University Computer Science Department Lines: 24 /* * Folks, I've seen this done wrong too many times. * This is one way to do it right; the other way is * with GetScreenData(). Choose one and use it; don't * go chasing down the damn list of screens looking * for the biggest! Geez. */ #include "gfxbase.h" /* and whatever else is necessary */ struct IntuitionBase *IntuitionBase ; struct GfxBase *GfxBase ; int screenwidth ; /* hires screen width */ int screenheight ; /* non-interlace screen height */ init() { if ((IntuitionBase=(struct IntuitionBase *)OpenLibrary( "intuition.library", 33L))==NULL) /* we need 1.2 */ error("! I ain't feeling well today, ma") ; if ((GfxBase=(struct GfxBase *)OpenLibrary("graphics.library", 0L))==NULL) error("! dang, the graphics library ain't there") ; screenwidth = GfxBase->NormalDisplayColumns ; screenheight = GfxBase->NormalDisplayRows ; } /* * Now, wasn't that easy? */