This commit is contained in:
AshBastian
2020-01-09 00:58:03 +01:00
parent 8b1fd5c3f0
commit 46a69024d3
15 changed files with 111 additions and 208 deletions

View File

@@ -57,9 +57,6 @@ void IntelliTool::createToolLayer(){
void IntelliTool::mergeToolLayer(){
QColor clr_0;
QColor clr_1;
if(Area->renderSettings.getFastRenderer()){
activeLayer->image->imageData = activeLayer->image->imageData.convertToFormat(QImage::Format_ARGB32);
}
for(int y=0; y<activeLayer->height; y++) {
for(int x=0; x<activeLayer->width; x++) {
clr_0=activeLayer->image->imageData.pixelColor(x,y);
@@ -77,9 +74,6 @@ void IntelliTool::mergeToolLayer(){
activeLayer->image->imageData.setPixelColor(x, y, clr_0);
}
}
if(Area->renderSettings.getFastRenderer()){
activeLayer->image->imageData = activeLayer->image->imageData.convertToFormat(QImage::Format_Indexed8);
}
}
void IntelliTool::deleteToolLayer(){