Roderick Colenbrander : winex11: Add helper function for calculating ColorShifts.