mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +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,9 +3024,8 @@ static void blend_untransformed_argb(int count, const QSpan *spans, void *userDa
|
||||||
static void QT_FASTCALL blendUntransformed(qrgb565 *dest, const qrgb565 *src,
|
static void QT_FASTCALL blendUntransformed(qrgb565 *dest, const qrgb565 *src,
|
||||||
quint8 coverage, int length)
|
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 alpha = qrgb565::alpha(coverage);
|
||||||
const quint8 ialpha = qrgb565::ialpha(coverage);
|
const quint8 ialpha = qrgb565::ialpha(coverage);
|
||||||
if (alpha) {
|
if (alpha) {
|
||||||
|
@ -3034,7 +3033,6 @@ static void QT_FASTCALL blendUntransformed(qrgb565 *dest, const qrgb565 *src,
|
||||||
interpolate_pixel(dest[i], ialpha, src[i], alpha);
|
interpolate_pixel(dest[i], ialpha, src[i], alpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void blend_untransformed_rgb565(int count, const QSpan *spans,
|
static void blend_untransformed_rgb565(int count, const QSpan *spans,
|
||||||
void *userData)
|
void *userData)
|
||||||
|
|
Loading…
Add table
Reference in a new issue