fixed alpha blending in some situations

This commit is contained in:
itsmattkc
2018-12-01 11:56:30 +11:00
parent 326403c126
commit 0188920556
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ SolidEffect::SolidEffect(Clip* c, const EffectMeta* em) : Effect(c, em) {
void SolidEffect::redraw(double timecode) {
int w = img.width();
int h = img.height();
int alpha = (opacity_field->get_double_value(timecode)*2.55);
int alpha = qRound(opacity_field->get_double_value(timecode)*2.55);
switch (solid_type->get_combo_data(timecode).toInt()) {
case SOLID_TYPE_COLOR:
{