[fpc-devel] CreateGrayScalePalette exception

Michael Van Canneyt michael at freepascal.org
Sun Jun 29 13:16:51 CEST 2008



On Sun, 29 Jun 2008, Vincent Snijders wrote:

> Michael Van Canneyt schreef:
> > 
> > On Fri, 27 Jun 2008, Paul Ishenin wrote:
> > 
> > > Hello,  FPC developers' list.
> > >
> > > CreateGrayScalePalette raises an exception. The problem is that palette is
> > > created with count = 0 and every color assigment increase color count. I
> > > dont
> > > know why it is done so but as result you cannot assign palette colors from
> > > highier indexes to lower. It is not a big problem but
> > > CreateGrayScalePalette
> > > doesnot follow this rule and raises an exception.
> > >
> > > Attached patch fixes CreateGrayScalePalette.
> > 
> > Applied, thank you.
> > 
> 
> Can this be merged to fpc 2.2.3 and the release candidate of fpc 2.2.2?

It can.

Michael.



More information about the fpc-devel mailing list