Index:
[thread]
[date]
[subject]
[author]
From: Marcus Sundberg <mackan@stacken.kth.se>
To : ggi-develop@eskimo.com
Date: Tue, 17 Aug 1999 21:25:01 +0000
Re: color unallocation
Erik Thiele wrote:
>
> if my program uses 3 colors and only
> needs 200 when the image-view action is activated,
>
> i'd like to allocate only 3 colors
>
> and take the 200 when i need them, but release them afterwards.
> (i use the X target on 8bpp)
>
> but i cannot find a function to give back the no longer
> needed colors
LibGGI is a fullscreen graphics API and as such does not have the notion
of "allocating" or freeing colors.
If you want to reduce color flickering on windowing systems you can
use GGI_PALETTE_DONTCARE as documented in the ggiSetPalette() man-page.
Another, less nice on non-X targets, alternative is to close and re-open
the visual when activating/de-activating the image-viewer.
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: mackan@stacken.kth.se
Index:
[thread]
[date]
[subject]
[author]