Index: [thread] [date] [subject] [author]
  From: Steve Cheng <elmert@ipoline.com>
  To  : ggi-develop@eskimo.com
  Date: Wed, 21 Apr 1999 16:33:52 -0400 (EDT)

Re: GGI help

On Wed, 21 Apr 1999, Marcus Sundberg wrote:

> The result is not undefined, ggiSetPalette() returns <0 on failure,
> whatever the reason may be. The reason that ggiSetColorfulPalette()
> fails in this thread is that it needs to allocate (1<<GT_DEPTH(mode))*8
> bytes of memory.

Oh yes, you're right, but why try to allocate memory when you know
ggiSetPalette() will fail (not palettized mode).  Or ggiSetPalette() can
conceivably work in that case?  Otherwise programs will have to check
for palettized mode before calling ggiSetColorfulPalette() anyway.

--
Steve Cheng

email: steve@ggi-project.org
www: <http://shell.ipoline.com/~elmert/>;

Index: [thread] [date] [subject] [author]