Evidently this is called mydriasis.I read that it has various causes, but is apparently an indicator of Glaucoma, which is painful. People get it, and it is often found in cats.
It is quite possible that some of the ill humour in your poor kitty may have come from discomfort.