fix conversion to SDL color