mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
QImage::Format_Indexed8 image filling from QColor optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
37aaef6a81
commit
10fe32ba4d
1 changed files with 2 additions and 1 deletions
|
@ -1534,8 +1534,9 @@ void QImage::fill(const QColor &color)
|
|||
|
||||
} else if (d->depth == 8) {
|
||||
uint pixel = 0;
|
||||
const QRgb crgba = color.rgba();
|
||||
for (int i=0; i<d->colortable.size(); ++i) {
|
||||
if (color.rgba() == d->colortable.at(i)) {
|
||||
if (crgba == d->colortable.at(i)) {
|
||||
pixel = i;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue