🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9331

Re: WaitTOF in interlace mode

#9331
From: Jim Mackraz
Date: Wed, 20 Jul 1988 22:00
61 lines
3182 bytes
In article <4860@killer.DALLAS.TX.US> ltf@killer.DALLAS.TX.US (Lance Franklin) writes:
)
)When running a window on a screen that's interlaced, is there any way, in
)a non-hardware-specific, intuition-friendly way to tell whether you're 
)starting an even or odd scan when you return from a call to WaitTOF. 

Good questions.  I dunno.  I probably should.

)  Right now, I open
)a CUSTOMBITMAP window with two planes on the WorkBench, then allocate a
)bitmap with a single plane with it's address replicated in both plane pointers
)in the RastPort.Bitmap structure.  This allows me to have four color gadgets
)in the frame, but faster blits (thru a second RastPort structure pointing to
)the same single plane).  Until we get to the point where we can open windows
)with a different number of planes on the border and the interior, it'll do.

Nice idea, I think.  Actually, no.  If you are really doing a custombitmap
Window, it is a 'superbitmap' window, and a gimmezerozero window, and
you are paying too much for speed.  Maybe in screen-land, there's
a trick here, but not in window-land.

Don't forget: the actual number of bitplanes visible is determined by
the screen.  Superbitmaps, etc. are just metaphors, and not always 
particularly fast metaphors.

Your trick would probably do everything twice, for both bitplanes,
whether the bitplanes were at the same address or not.  You need to lie
about either the BitMap.Depth or the RastPort.mask to get rendering
to only do one plane.

You CAN render to a single plane: just set the mask in your Window's
RastPort to 1, and use it for window-clipped rendering through the
rastport.  There may be some voodoo with layers where this won't work, but
I don't think there's anything else you could do in this case.

One thing I know for sure: if you do text in pen color 1 or 2 (i.e., into
a single bitplane) you can SCROLL it using clip blit just moving a single
bitplane.

)Oh yeah, two more little questions...
)
)   #1:  Is there any way to have proportional gadgets rendered in anything
)        other than the windows Detail and Block pen?
)
)   #2:  Is there any way to get String Gadgets to use anything but the
)        screen's default font...get's a bit annoying when somebody 
)        replaces the WorkBenchs default font to an 11 point font.

Yep: wait until V1.4.  Until then, you have to roll your own.  Neither
is too hard, if you don't try to scroll your string gadgets in a 
proportional font.

)Thanks.....Lance
)"It's a Man's Life, taking your clothes off in public!"

	jimm
-- 
	Jim Mackraz, I and I Computing	  
	amiga!jimm	BIX:jmackraz
Opinions are my own.  Comments regarding the Amiga operating system, and
all others, are not to be taken as Commodore official policy.
Technical Details
Message-ID: <2596@amiga.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!ames!oliveb!amiga!jimm
References: <4860@killer.DALLAS.TX.US>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!ames!oliveb!amiga!jimm
From: jimm@amiga.UUCP (Jim Mackraz)
Newsgroups: comp.sys.amiga.tech
Subject: Re: WaitTOF in interlace mode
Message-ID: <2596@amiga.UUCP>
Date: 20 Jul 88 22:00:50 GMT
References: <4860@killer.DALLAS.TX.US>
Reply-To: jimm@cloyd.UUCP (Jim Mackraz)
Organization: Commodore-Amiga Inc, Los Gatos CA
Lines: 61