From owner-freebsd-chat Mon Nov 5 17:44:40 2001 Delivered-To: freebsd-chat@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 90DEB37B416 for ; Mon, 5 Nov 2001 17:44:38 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 8944314C2E; Tue, 6 Nov 2001 02:44:36 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Marcus Reid Cc: freebsd-chat@FreeBSD.Org Subject: Re: simplicity_saver References: <20011104151840.A13030@blazingdot.com> <20011105171840.E20245@blazingdot.com> From: Dag-Erling Smorgrav Date: 06 Nov 2001 02:44:35 +0100 In-Reply-To: <20011105171840.E20245@blazingdot.com> Message-ID: Lines: 15 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Marcus Reid 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