On 23.07.2017 15:25, Michael Van Canneyt wrote:
I think the case statement is inefficient enough not to worry about an additional call.

There is IdentToInt function in Classes that makes this more efficient. IdentToColor from Graphics.pas uses it as well.

Ondrej
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to