mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
remove redundant condition check in blendUntransformed()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
84bec71b03
commit
7286ec19be
1 changed files with 6 additions and 8 deletions
|
@ -3024,16 +3024,14 @@ static void blend_untransformed_argb(int count, const QSpan *spans, void *userDa
|
|||
static void QT_FASTCALL blendUntransformed(qrgb565 *dest, const qrgb565 *src,
|
||||
quint8 coverage, int length)
|
||||
{
|
||||
Q_ASSERT(coverage > 0);
|
||||
Q_ASSERT(coverage > 0 && coverage < 255);
|
||||
|
||||
if (coverage < 255) {
|
||||
const quint8 alpha = qrgb565::alpha(coverage);
|
||||
const quint8 ialpha = qrgb565::ialpha(coverage);
|
||||
if (alpha) {
|
||||
for (int i = 0; i < length; ++i)
|
||||
interpolate_pixel(dest[i], ialpha, src[i], alpha);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void blend_untransformed_rgb565(int count, const QSpan *spans,
|
||||
|
|
Loading…
Add table
Reference in a new issue