Article View: net.micro.mac
Article #1859Re: Alt Screen Buf & Quickdraw
From: Brian H. Powell
Date: Mon, 24 Jun 1985 04:05
Date: Mon, 24 Jun 1985 04:05
31 lines
2364 bytes
2364 bytes
> Does anyone out there know how to make QuickDraw work with the
> alternate screen buffer,i.e. is there a global that specifies the
> starting address of screen memory? I want to do some smooth animation
> and know how to cause the display hardware to switch between the
> two different screens. I just have to get QuickDraw to work with
> alternate screen buffer.
>
> thanks
> Tharakesh Siddalingaiah ---
> University of Maryland Computer Vision Lab, (301) 454-4526
> ARPA:tk@cvl CSNET:tk@cvl UUCP:{seismo,allegra,brl-bmd}!umcp-cs!cvl!tk
I don't think there is a global that tells you the address. Once you
tell the segment loader which screen to use, you can get that information
from quickdraw, so you won't have to have $72700 in your program as a
constant.
The way to get access to the alternate screen buffer is to tell the
segment loader that you intend to use it. You have to use either Launch
or Chain. There's apparently no way to have it happen from the finder.
Probably you should write a small dummy application that launches your real
application with the proper launch or chain command. See the segment loader
part of Inside Mac for more info.
Then your program has to tell the video hardware when to switch between
the two buffers. To do this, set or clear bit 6 of address $EFFFFE. Set
to 1 means use the default screen. Clear means use the alternate. To do
this in a nice sort of manner, $EFFFFE comes from the base address of the
VIA (found in the global "VIA" which turns out to be address $1D4 and it
usually contains $EFE1FE) plus an offset 1E00. I don't think there's anything
in Inside Mac to explain this.
Brian H. Powell brian@ut-sally
Technical Details
Message-ID:
<2174@ut-sally.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!ut-sally!brianReferences:
<569@cvl.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ut-sally.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!ut-sally!brian From: brian@ut-sally.UUCP (Brian H. Powell) Newsgroups: net.micro.mac Subject: Re: Alt Screen Buf & Quickdraw Message-ID: <2174@ut-sally.UUCP> Date: Mon, 24-Jun-85 00:05:19 EDT Article-I.D.: ut-sally.2174 Posted: Mon Jun 24 00:05:19 1985 Date-Received: Wed, 26-Jun-85 06:10:39 EDT References: <569@cvl.UUCP> Distribution: net Organization: U. Texas CS Dept., Austin, Texas Lines: 31