mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
re-use variable in destStoreARGB32() drawing helper
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3eb3978582
commit
21aeb562bf
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ static void QT_FASTCALL destStoreARGB32(QRasterBuffer *rasterBuffer, int x, int
|
|||
else if (alpha == 0)
|
||||
data[i] = 0;
|
||||
else {
|
||||
int inv_alpha = 0xff0000/qAlpha(buffer[i]);
|
||||
int inv_alpha = 0xff0000/alpha;
|
||||
data[i] = (p & 0xff000000)
|
||||
| ((qRed(p)*inv_alpha) & 0xff0000)
|
||||
| (((qGreen(p)*inv_alpha) >> 8) & 0xff00)
|
||||
|
|
Loading…
Add table
Reference in a new issue