Fixed colorkey conversion.
Handle null surface pointer when creating surface.

2 files changed