Path: utzoo!mnetor!uunet!steinmetz!ge-dab!codas!killer!ltf From: ltf@killer.UUCP (Lance Franklin) Newsgroups: comp.sys.amiga Subject: Re: LACE Workbench (and more questions) Message-ID: <3221@killer.UUCP> Date: 5 Feb 88 04:26:52 GMT References: <5145@well.UUCP> Reply-To: ltf@killer.UUCP (Lance Franklin) Organization: The Unix(R) Connection BBS, Dallas, Tx Lines: 37 Keywords: .tech 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. > >-- > Stuart Ferguson (shf@well.UUCP) > Action by HAVOC (shf@Solar.Stanford.EDU) Hmmm...There may be an easier way (Perhaps something in IntuitionBase or GfxBase), but I generally do a call to GetScreenData (with WBENCHSCREEN as the screen_type parameter) and look at the Screen.Height member of the structure...if it's greater than the maximum size of a non-interlaced screen (what, 263 lines?), I assume it's an interlaced screen. This is also how I get the information I need to open a window to the full size of a morerow'd workbench. Here's another question....how do I, when working with an interlaced screen, figure out whether I'm starting an even or odd scan when I call WaitTOF()? A ScrollRaster does some really interesting things on an interlaced screen when you do it EVERY WaitTOF(). Oh, and one more question...is there an approved way to open a window with less planes inside the window than there is in the borders? f.i. a window with two planes for the border, but only one plane in the drawing area inside the window? Thanx -- +------------------+ +------------------------------------------------------+ | Lance T Franklin | | Now accepting suggestions for clever, humourous or | | ltf@killer | | incredibly insightful .signature quote. Send Now! | +------------------+ +------------------------------------------------------+