🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #40066

Re: video windows on the mac

#40066
From: Ed Tecot
Date: Thu, 30 Mar 1989 00:34
27 lines
1902 bytes
In article <404@biar.UUCP> trebor@biar.UUCP (Robert J Woodhead) writes:
>Alternatively, for a quick and dirty implementation, you might be able
>to get away with checking for a change in your window's portRect and
>visRgn during the vertical blank interval.  The portRect check is
>trivial, and you might be able to get away with a check for the visRgn
>as follows : if the handle hasn't changed (ie: curVisRgnHdl^=oldVisRgnHdl^)
>AND the handle is the same size, then it's very likely that the visRgn
>hasn't changed.  The real question here is "When the window manager
>changes a visRgn, does it generate the new region (in a new handle),
>set the visRgn to point to the new region, and free up the old visRgn?"
>If it does, then on any window manager call that changes your window's
>visRgn, the handle is going to change, which you can easily detect.
>In this situation, the only possibility for a failure is if, between
>two vertical blank intervals, two window manager calls are executed
>that result in a different region _of_the_same_size_ being allocated
>in the most recently freed area of the heap, so that the visRgn handle
>_appears_ to change.

I wouldn't recommend this.  Regions are relocatable blocks and are in an
indeterminate state at interrupt time (they could be in the process of being
relocated).

Several real-time video cards work by reserving a special color table entry.
Any portion of the screen which has that "color" is instead drawn with the
video input.

							_emt
Technical Details
Message-ID: <28065@apple.Apple.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!tecot
References: <369@bnr-fos.UUCP> <404@biar.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!tecot
From: tecot@Apple.COM (Ed Tecot)
Newsgroups: comp.sys.mac
Subject: Re: video windows on the mac
Message-ID: <28065@apple.Apple.COM>
Date: 30 Mar 89 00:34:20 GMT
References: <369@bnr-fos.UUCP> <404@biar.UUCP>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 27