mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
avoid temporary in QRasterPixmapData::fill()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3651dbcc14
commit
f7c0445588
1 changed files with 1 additions and 2 deletions
|
@ -172,9 +172,8 @@ bool QRasterPixmapData::scroll(int dx, int dy, const QRect &rect)
|
|||
|
||||
void QRasterPixmapData::fill(const QColor &color)
|
||||
{
|
||||
QImage::Format format = image.format();
|
||||
if (color.alpha() != 255 && !image.hasAlphaChannel()) {
|
||||
switch (format) {
|
||||
switch (image.format()) {
|
||||
case QImage::Format_RGB666: {
|
||||
image = image.convertToFormat(QImage::Format_ARGB6666_Premultiplied);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue