[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Super Hi Res Stuff



adri0001@student.tc.umn.edu (Wouldn't you like to know) writes:

>So, after that late-nite splub, I guess I'll get to my question.  I'm working 
>with some animation now...finally!  I was having problems with a phantom 
>bug before.  I needed to clear out the super-hi-res screen before I did
>anything to it...the problem was that I was clearing out the SHR screen and
>then flipping the SHR screen on...this was causing ghost pixels to get lit up
>at the bottom of the screen but ONLY when I ran the program for the first time
>after launching into GNO.  I go to GNO from Prosel, run my program, and the 
>first time I do, the screen is a little messed on the bottom...but every
>subsequent run after that works fine.

  You're trashing someone's allocated memory.  You shouldn't do that.
MattIsm: People, _always_ use QuickDraw's QDStartUp to allocate screen
memory and initialize the graphics subsystem for you.  If you don't,
you interfere with the smoothlaunch mechanism that's in 6.0, and you
annoy people like me who like their OS extensions (GNO) to be able
to recognize when a program is taking over the screen.  There are
much better ways to start up with a blank SHR screen than doing what you're
doing.. but whether a blank SHR screen is even necessary is debatable.

  IMHO, I like programs that, if they must put up a splash screen,
turn on QuickDraw, set the palettes to all black (during the
vertical retrace, say, so you don't get tearing) and then fade in
the picture.  Like AWGS does it.  It's nice and it's also guaranteed
to be compatible with future revisions of GNO &/or Switch-It! that
just might do some things that surprise you.

  So, how's it going Amrit? :-)
-- 
 Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
 Procyon, Inc.              |   for the Apple IIgs!   
 bazyar@cs.uiuc.edu         |   P.O Box 620334
 --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649