home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD1.img
/
d1xx
/
d114
/
vt100
/
fixes
/
amiga.8989
< prev
next >
Wrap
Text File
|
1987-11-21
|
1KB
|
39 lines
Article 8989 of comp.sys.amiga:
Path: mcdsun!noao!hao!oddjob!mimsy!cvl!umd5!brl-adm!husc6!necntc!ames!aurora!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: 12 Oct 87 04:32:58 GMT
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?
*/