WINDOWS - added SetPixelFormat error handling