I was parsing color properties with no issue on linux, but when I ran
it on windows (mingw), the color value was wrong. I pin pointed the issue being
strtol returning -1 when parsing the hex string. The implementation must
work differently, skipping the first two unused 'ff' in the hex string
fixes it.
Tiled stores color values in 2 possibles lengths. Either #000000 or #ff0000000. Before my commit, the first works but the latter doesn't work, with my commit the latter works but the first doesn't work anymore.
I was parsing color properties with no issue on linux, but when I ran it on windows (mingw), the color value was wrong. I pin pointed the issue being strtol returning -1 when parsing the hex string. The implementation must work differently, skipping the first two unused 'ff' in the hex string fixes it.