fixed SDL_SurfaceHasPalette()