Skip to content

Commit b40b4f7

Browse files
committed
Plugins (alphablend): Fix calculation of alpha.
1 parent b521806 commit b40b4f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvisual-plugins/plugins/morph/alphablend/morph_alphablend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ static void lv_morph_alpha_apply (VisPluginData *plugin, float progress, VisAudi
8888
progress);
8989
}
9090

91-
static inline void alpha_blend_buffer (uint8_t *dest, uint8_t *src1, uint8_t *src2, int size, int depth, float alpha)
91+
static inline void alpha_blend_buffer (uint8_t *dest, uint8_t *src1, uint8_t *src2, int size, int depth, float progress)
9292
{
93-
uint8_t a = alpha * (1/255.0);
93+
uint8_t a = progress * 255;
9494

9595
switch (depth) {
9696
case VISUAL_VIDEO_DEPTH_8BIT:

0 commit comments

Comments
 (0)