Re-factor of gfx_transpose_palette

Requires testing i feel as though osinterface call might be incorrect.