[fpc-devel] CreateGrayScalePalette exception

Paul Ishenin ip at kmiac.ru
Fri Jun 27 04:57:44 CEST 2008


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.

--
Best regards,
Paul Ishenin.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: grey_pal.patch
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20080627/0264c3c3/attachment.ksh>


More information about the fpc-devel mailing list