Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) Newsgroups: net.micro.amiga Subject: Re: DPAINT & Interlace Message-ID: <270@cbmvax.cbmvax.cbm.UUCP> Date: Wed, 21-May-86 10:34:08 EDT Article-I.D.: cbmvax.270 Posted: Wed May 21 10:34:08 1986 Date-Received: Sat, 24-May-86 01:22:29 EDT References: <3122@decwrl.DEC.COM> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner) Organization: Commodore Technology, West Chester, PA Lines: 95 Keywords: Interlace Summary: Turning on Interlace In article <3122@decwrl.DEC.COM> mickol@highfi.DEC (NPO Tech Support Mgr, DTN 223-9609, MLO5-3/F13) writes: >Does anyone know how to use DPAINT in lo-res mode with interlace turned on. You need to put the display in Interlace mode before entering DPaint. The following program (SetLace.c) will turn Interlace ON and OFF. USAGE: SetLace y (ON) OR SetLace n =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ---------------------------- CUT HERE ---------------------------------- /************************************************************************ * SetLace -- Program to force the Amiga into interlaced display * regardless of the interlace status of the currently * active Screens (ViewPorts). Run from the CLI (only). * * 1>SetLace -- Set forced Interlace mode * 1>SetLace off -- Clear forced Interlace mode * * Bob Pariseau -- November 2, 1985 * ************************************************************************/ #include #include #include #include #include #include #include #include #include #include struct GfxBase *GfxBase; struct IntuitionBase *IntuitionBase; main(argc, argv) int argc; char *argv[]; { BOOL TurnItOn; TurnItOn = TRUE; if (argc > 1) if (!strcmp(argv[1], "off")) TurnItOn = FALSE; GfxBase = (struct GfxBase *)OpenLibrary("graphics.library", 0); if (GfxBase == NULL) exit(1000); IntuitionBase = (struct IntuitionBase*) OpenLibrary("intuition.library", 0); if (IntuitionBase == NULL) { CloseLibrary(GfxBase); exit(2000); } /* The system_bplcon0 value is ORed into all copper instructions that * change bplcon0 (one of the hardware bitplane control registers) * whenever copper lists are formed by the graphics library copper * list management routines. This value provides a control context * for system display that overrides the normal control values usually * managed by Intuition. In particular, Intuition manages the interlace * control in the View structure, so we have to do our control here * to give it some permanence. */ if (TurnItOn) GfxBase->system_bplcon0 |= INTERLACE; else GfxBase->system_bplcon0 &= !INTERLACE; /* Now we have to get all the copper lists rebuilt. The easiest way * to do this is to have Intuition do it for us. */ RemakeDisplay(); /* Be good, and clean up. */ CloseLibrary(GfxBase); CloseLibrary(IntuitionBase); } -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=