tnzs.c and related drivers: fix generic_paletteram regression (nw)