OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb3978
)
re-use variable in destStoreARGB32() drawing helper
author
Ivailo Monev
<xakepa10@gmail.com>
Sun, 27 Sep 2020 18:37:27 +0000
(21:37 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sun, 27 Sep 2020 18:37:27 +0000
(21:37 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/painting/qdrawhelper.cpp
patch
|
blob
|
history
diff --git
a/src/gui/painting/qdrawhelper.cpp
b/src/gui/painting/qdrawhelper.cpp
index
49aa6d5
..
ae765e0
100644
(file)
--- a/
src/gui/painting/qdrawhelper.cpp
+++ b/
src/gui/painting/qdrawhelper.cpp
@@
-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)