Found a bug in GetCrtcGamma, decided to audit the rest of the library for correctness around _XReply(). All fairly trivial, I think, but I'd appreciate a second set of eyes. - ajax