- improved palette handling (should be faster), - reorganize the code to make workaround hooks easier, - add a workaround for the 16bit r5g6b5 pixel case. this fixes crashes on 16 bit displays with RENDER disabled from maintainer Eric Faurot, thanks for writing this! discussed with kurt, bernd, espie.