Skip site navigation (1)Skip section navigation (2)
Date:      06 Nov 2001 02:44:35 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Marcus Reid <marcus@blazingdot.com>
Cc:        freebsd-chat@FreeBSD.Org
Subject:   Re: simplicity_saver
Message-ID:  <xzp8zdkd664.fsf@flood.ping.uio.no>
In-Reply-To: <20011105171840.E20245@blazingdot.com>
References:  <20011104151840.A13030@blazingdot.com> <xzpg07sdbtb.fsf@flood.ping.uio.no> <20011105171840.E20245@blazingdot.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcus Reid <marcus@blazingdot.com> writes:
> Something calls simplicity_saver() with blank != 0 when the screensaver
> needs to be displayed, for each frame of animation. The first time through,
> the palette is set, and each additional time that part is skipped. When
> finally (someone presses a key or something and) simplicity_saver() is
> called with blank = 0, blanked is set back to 0 so that the palette and
> video mode are set next time they're needed.

The palette (k_pal) is a static array and only needs to be initialized
once.  You need to *load* it every time you blank the screen, but you
only need to initialize it once.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp8zdkd664.fsf>