Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga Subject: Re: LACE Workbench Message-ID: <5147@well.UUCP> Date: 3 Feb 88 23:41:55 GMT References: <5145@well.UUCP> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: (-: ACME Flamethrowers. Mark Ethan Smith, CEO. :-) Lines: 34 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. > Well, you could do this: -------- register struct Window *win; UWORD CRTModes; win = OpenWindow (&NewWindow); CRTModes = win -> WScreen -> ViewPort.Modes; -------- However, this will probably not be very useful when 1.4 (currently vaporware, and likely to remain that way for a long time yet) comes out. If I'm reading Dale's and Jimm's minds correctly, under future operating systems, you won't be able to make any assumptions about what the WorkBench screen looks like (case in point: The Hedley (sp?) monitor). Dale thought of this already, and somewhere in GfxBase are a couple of variables called NormalDPMX and NormalDPMY. These give the DotsPerMetre measurements of the screen. You're supposed to calculate aspect ratios from these. Exactly how you do that, I have no idea. Dale, could you clear that up? Personally, I've never understood how those variables worked, particularly if there are multiple viewports on the screen. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape ihnp4!ptsfa -\ \_ -_ Recumbent Bikes: dual ---> !{well,unicom}!ewhac O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor