Fixed gradient opacity computation

Change-Id: Ia9355328e5919ba8db09f84baaeff8ad4e3c5dda