mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
use proper type for QRgbMap::used member
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
6a7a8a4241
commit
ed3b637cd8
1 changed files with 4 additions and 4 deletions
|
@ -2255,9 +2255,9 @@ static void convert_ARGB_PM_to_Mono(QImageData *dst, const QImageData *src, Qt::
|
|||
// if dithering is needed, only 1 color at most is available for alpha.
|
||||
//
|
||||
struct QRgbMap {
|
||||
inline QRgbMap() : used(0) { }
|
||||
inline QRgbMap() : used(false) { }
|
||||
uchar pix;
|
||||
uchar used;
|
||||
bool used;
|
||||
QRgb rgb;
|
||||
};
|
||||
|
||||
|
@ -2301,7 +2301,7 @@ static void convert_RGB_to_Indexed8(QImageData *dst, const QImageData *src, Qt::
|
|||
dst->colortable[pix] = p;
|
||||
table[hash].pix = pix++;
|
||||
table[hash].rgb = p;
|
||||
table[hash].used = 1;
|
||||
table[hash].used = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2339,7 +2339,7 @@ static void convert_RGB_to_Indexed8(QImageData *dst, const QImageData *src, Qt::
|
|||
dst->colortable[pix] = p;
|
||||
table[hash].pix = pix++;
|
||||
table[hash].rgb = p;
|
||||
table[hash].used = 1;
|
||||
table[hash].used = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue