if (view_xview[0] > 0) { a = oalpha - (view_xview[0] / top); if (a > 0) image_alpha = a; else image_alpha = 0; }