premul fixes from jose

SVN revision: 26301
This commit is contained in:
Carsten Haitzler 2006-10-02 13:19:20 +00:00
parent 9f56b0c370
commit c9be009c4f
1 changed files with 3 additions and 3 deletions

View File

@ -303,9 +303,9 @@ _e_spectrum_redraw(void *d)
_e_spectrum_color_calc(sp, vx, vy, vz, &r, &g, &b);
data[(i * sp->iw) + j] =
(sp->cv->a << 24) |
(((r << 16) * sp->cv->a) / 255) |
(((g << 8 ) * sp->cv->a) / 255) |
(((b ) * sp->cv->a) / 255);
(((r * sp->cv->a) / 255) << 16) |
(((g * sp->cv->a) / 255) << 8) |
(((b * sp->cv->a) / 255) );
}
}