Skip to content

Commit

Permalink
fix alphaspot transition param
Browse files Browse the repository at this point in the history
clang on macOS stopped handling the "Transition width" parameter.
  • Loading branch information
ddennedy committed Dec 8, 2023
1 parent 49f759d commit 76b727f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/filter/alpha0ps/alpha0ps_alphaspot.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void gen_rec_s(uint8_t* sl, int w, int h, float siz1, float siz2, float tilt, fl
g = min + (1.0f - wb-db)/wb*(max-min);
}
}
sl[i*w+j] = g * 255.0f;
sl[i*w+j] = lrintf(g * 255.0f);
}
}
}
Expand Down Expand Up @@ -117,7 +117,7 @@ void gen_eli_s(uint8_t* sl, int w, int h, float siz1, float siz2, float tilt, fl
g = min + (1.0f - wb-db)/wb*(max-min);
}
}
sl[i*w+j] = g * 255.0f;
sl[i*w+j] = lrintf(g * 255.0f);
}
}
}
Expand Down Expand Up @@ -162,7 +162,7 @@ void gen_tri_s(uint8_t* sl, int w, int h, float siz1, float siz2, float tilt, fl
g = min + (lim-wb-db)/wb*(max-min);
}
}
sl[i*w+j] = g * 255.0f;
sl[i*w+j] = lrintf(g * 255.0f);
}
}
}
Expand Down Expand Up @@ -195,7 +195,7 @@ void gen_dia_s(uint8_t* sl, int w, int h, float siz1, float siz2, float tilt, fl
g = min + (1.0f - wb-db)/wb*(max-min);
}
}
sl[i*w+j] = g * 255.0f;
sl[i*w+j] = lrintf(g * 255.0f);
}
}
}
Expand Down

0 comments on commit 76b727f

Please sign in to comment.