Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!sun-barr!newstop!sun!imagen!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st Subject: Re: switching res Message-ID: <2805@atari.UUCP> Date: 10 Jan 91 19:59:10 GMT References: <278ba068.35a3@petunia.CalPoly.EDU> Organization: Atari Corp., Sunnyvale CA Lines: 17 sslee@polyslo.CalPoly.EDU (Steven Lee) writes: > char *ainit=(char *)a_init; /* Line A call, $A000 */ > Setscreen(-1L,-1L,0); > *((int *)(aline-692))=319; /* Mouse X limit */ > *((int *)(aline-690))=199; /* Mouse Y limit */ > *((int *)(aline-666))=16; /* # of bitplanes */ Setscreen() fills in the line-A variable space with correct values for the new resolution, so you don't have to do it yourself. This is the right way to change rez, if you want to do that. Since you already know you're going "behind AES's back" in doing this, I won't lecture you on the implications. As long as you Setscreen() back to the old rez before you make any AES calls, this works. ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt