Now everything is Indexe 8 😲

Job done.
This commit is contained in:
Jan Schuffenhauer
2020-01-08 19:56:56 +01:00
parent 78272a5790
commit 7ed8e858af
2 changed files with 22 additions and 8 deletions

View File

@@ -4,7 +4,13 @@
IntelliImage::IntelliImage(int width, int height, bool fastRendererOn)
: imageData(QSize(width, height), fastRendererOn ? QImage::Format_Indexed8 : QImage::Format_ARGB32){
imageData.fill(QColor(255,255,255,255));
if(fastRendererOn){
imageData = imageData.convertToFormat(QImage::Format_ARGB32);
}
imageData.fill(QColor(255,255,255,255));
if(fastRendererOn){
imageData = imageData.convertToFormat(QImage::Format_Indexed8);
}
this->fastRenderer = fastRendererOn;
}