Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: LACE Workbench Message-ID: <41034@sun.uucp> Date: 4 Feb 88 19:18:15 GMT References: <5145@well.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 18 In article <5145@well.UUCP> shf@well.UUCP (Stuart H. Ferguson) writes: > >What's a good (read: fast/simple) way to detect if the Workbench screen is in >interlace mode? I need to do this to compute the aspect ratio for pixels on >*any* Workbench screen. Thanx in advance. Open a window on the workbench and look at .. interlace = ((win->WScreen).ViewPort.Modes & LACE) != 0; But better yet, the aspect ratio is supposed to be ... GfxBase->NormalDPX / GfxBase->NormalDPY This is the Dots per meter in the X direction over the Dots per meter in the Y direction. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.