Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fixed Beta naming and spacing
Ken Lo05a98ffeefd9
diff --git a/libs/ui/tool/kis_tool_freehand_helper.cpp b/libs/ui/tool/kis_tool_freehand_helper.cppindex 88441714d2..45ded692a1 100644--- a/libs/ui/tool/kis_tool_freehand_helper.cpp+++ b/libs/ui/tool/kis_tool_freehand_helper.cpp@@ -613,41 +613,40 @@ void KisToolFreehandHelper::paint(KisPaintInformation &info)if (m_d->smoothingOptions->smoothingType() == KisSmoothingOptions::PIXEL_PERFECT) {// initial case: No last drawn pixel or waiting pixel- if(!m_d->hasLastDrawnPixel) {- currentPixelPos = info.pos();- m_d->waitingPixel = currentPixelPos;-- paintLine(m_d->previousPaintInformation, KisPaintInformation(m_d->waitingPixel));- m_d->lastDrawnPixel = m_d->waitingPixel;- m_d->hasLastDrawnPixel = true;+ if(!m_d->hasLastDrawnPixel) {+ currentPixelPos = info.pos();+ m_d->waitingPixel = currentPixelPos;++ paintLine(m_d->previousPaintInformation, KisPaintInformation(m_d->waitingPixel));+ m_d->lastDrawnPixel = m_d->waitingPixel;+ m_d->hasLastDrawnPixel = true;+ m_d->pixelInLineCount = 1;+ } else {+ if (abs(currentPixelPos.x() - m_d->lastDrawnPixel.x()) > PIXEL_DISTANCE_THRESHOLD || abs(currentPixelPos.y() - m_d->lastDrawnPixel.y()) > PIXEL_DISTANCE_THRESHOLD) {m_d->pixelInLineCount = 1;- } else {- if (abs(currentPixelPos.x() - m_d->lastDrawnPixel.x()) > PIXEL_DISTANCE_THRESHOLD || abs(currentPixelPos.y() - m_d->lastDrawnPixel.y()) > PIXEL_DISTANCE_THRESHOLD) {- if(m_d->hasLastDrawnPixel) {- m_d->pixelInLineCount = 1;- }// current pixel is too far, draw the waiting pixel- paintLine(m_d->lastDrawnPixel, KisPaintInformation(m_d->waitingPixel));- m_d->pixelInLineCount += 2;- m_d->lastDrawnPixel = m_d->waitingPixel;- m_d->waitingPixel = currentPixelPos;- }- // check axis, if the currentpixel is in the same axis as the lastdrawnpixel, we can draw waiting pixel- if (m_d->pixelInLineCount > 2 && (currentPixelPos.x() == m_d->lastDrawnPixel.x() || currentPixelPos.y() == m_d->lastDrawnPixel.y())) {- paintLine(m_d->lastDrawnPixel, KisPaintInformation(m_d->waitingPixel));- m_d->lastDrawnPixel = m_d->waitingPixel;- m_d->olderPaintInformation = m_d->previousPaintInformation;- }- else{- //otherwise just change update waiting pixel without drawing it, this is the scenario where we just skip a corner and therefore we also reset pixelInLineCount- m_d->waitingPixel = currentPixelPos;- m_d->pixelInLineCount = 0;- }- // Enable stroke timeout only when not airbrushing.- if (!m_d->airbrushingTimer.isActive()) {- m_d->strokeTimeoutTimer.start(100);- }+ paintLine(m_d->lastDrawnPixel, KisPaintInformation(m_d->waitingPixel));+ m_d->pixelInLineCount += 2;+ m_d->lastDrawnPixel = m_d->waitingPixel;+ m_d->waitingPixel = currentPixelPos;+ }+ // check axis, if the currentpixel is in the same axis as the lastdrawnpixel, we can draw waiting pixel+ if (m_d->pixelInLineCount >= 1 && (currentPixelPos.x() == m_d->lastDrawnPixel.x() || currentPixelPos.y() == m_d->lastDrawnPixel.y())) {+ paintLine(m_d->lastDrawnPixel, KisPaintInformation(m_d->waitingPixel));+ m_d->lastDrawnPixel = m_d->waitingPixel;+ m_d->olderPaintInformation = m_d->previousPaintInformation;+ m_d->pixelInLineCount++;+ }+ else{+ //otherwise just change update waiting pixel without drawing it, this is the scenario where we just skip a corner and therefore we also reset pixelInLineCount+ m_d->waitingPixel = currentPixelPos;+ m_d->pixelInLineCount = 0;+ }+ // Enable stroke timeout only when not airbrushing.+ if (!m_d->airbrushingTimer.isActive()) {+ m_d->strokeTimeoutTimer.start(100);}+ }}if (m_d->smoothingOptions->smoothingType() == KisSmoothingOptions::STABILIZER) {diff --git a/packaging/android/apk/.gradle/7.6.4/checksums/checksums.lock b/packaging/android/apk/.gradle/7.6.4/checksums/checksums.lockdeleted file mode 100644index 072f7832ef..0000000000Binary files a/packaging/android/apk/.gradle/7.6.4/checksums/checksums.lock and /dev/null differdiff --git a/packaging/android/apk/.gradle/7.6.4/checksums/md5-checksums.bin b/packaging/android/apk/.gradle/7.6.4/checksums/md5-checksums.bindeleted file mode 100644index da88982087..0000000000Binary files a/packaging/android/apk/.gradle/7.6.4/checksums/md5-checksums.bin and /dev/null differdiff --git a/packaging/android/apk/.gradle/7.6.4/checksums/sha1-checksums.bin b/packaging/android/apk/.gradle/7.6.4/checksums/sha1-checksums.bindeleted file mode 100644index c406f2c7e2..0000000000Binary files a/packaging/android/apk/.gradle/7.6.4/checksums/sha1-checksums.bin and /dev/null differdiff --git a/packaging/android/apk/.gradle/7.6.4/fileChanges/last-build.bin b/packaging/android/apk/.gradle/7.6.4/fileChanges/last-build.bindeleted file mode 100644index f76dd238ad..0000000000Binary files a/packaging/android/apk/.gradle/7.6.4/fileChanges/last-build.bin and /dev/null differdiff --git a/packaging/android/apk/.gradle/7.6.4/fileHashes/fileHashes.lock b/packaging/android/apk/.gradle/7.6.4/fileHashes/fileHashes.lockdeleted file mode 100644index 3191b5c76e..0000000000Binary files a/packaging/android/apk/.gradle/7.6.4/fileHashes/fileHashes.lock and /dev/null differdiff --git a/packaging/android/apk/.gradle/7.6.4/gc.properties b/packaging/android/apk/.gradle/7.6.4/gc.propertiesdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packaging/android/fdroid/.gradle/8.9/checksums/checksums.lock b/packaging/android/fdroid/.gradle/8.9/checksums/checksums.lockdeleted file mode 100644index dfd7c74530..0000000000Binary files a/packaging/android/fdroid/.gradle/8.9/checksums/checksums.lock and /dev/null differdiff --git a/packaging/android/fdroid/.gradle/8.9/dependencies-accessors/gc.properties b/packaging/android/fdroid/.gradle/8.9/dependencies-accessors/gc.propertiesdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packaging/android/fdroid/.gradle/8.9/executionHistory/executionHistory.lock b/packaging/android/fdroid/.gradle/8.9/executionHistory/executionHistory.lockdeleted file mode 100644index bb99413521..0000000000Binary files a/packaging/android/fdroid/.gradle/8.9/executionHistory/executionHistory.lock and /dev/null differdiff --git a/packaging/android/fdroid/.gradle/8.9/fileChanges/last-build.bin b/packaging/android/fdroid/.gradle/8.9/fileChanges/last-build.bindeleted file mode 100644index f76dd238ad..0000000000Binary files a/packaging/android/fdroid/.gradle/8.9/fileChanges/last-build.bin and /dev/null differdiff --git a/packaging/android/fdroid/.gradle/8.9/fileHashes/fileHashes.lock b/packaging/android/fdroid/.gradle/8.9/fileHashes/fileHashes.lockdeleted file mode 100644index 54d4a14566..0000000000Binary files a/packaging/android/fdroid/.gradle/8.9/fileHashes/fileHashes.lock and /dev/null differdiff --git a/packaging/android/fdroid/.gradle/8.9/gc.properties b/packaging/android/fdroid/.gradle/8.9/gc.propertiesdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packaging/android/fdroid/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/packaging/android/fdroid/.gradle/buildOutputCleanup/buildOutputCleanup.lockdeleted file mode 100644index 11537dbabc..0000000000Binary files a/packaging/android/fdroid/.gradle/buildOutputCleanup/buildOutputCleanup.lock and /dev/null differdiff --git a/packaging/android/fdroid/.gradle/buildOutputCleanup/cache.properties b/packaging/android/fdroid/.gradle/buildOutputCleanup/cache.propertiesdeleted file mode 100644index 536d8a54b6..0000000000--- a/packaging/android/fdroid/.gradle/buildOutputCleanup/cache.properties+++ /dev/null@@ -1,2 +0,0 @@-#Tue Aug 13 01:32:38 EDT 2024-gradle.version=8.9diff --git a/packaging/android/fdroid/.gradle/vcs-1/gc.properties b/packaging/android/fdroid/.gradle/vcs-1/gc.propertiesdeleted file mode 100644index e69de29bb2..0000000000diff --git a/plugins/tools/basictools/kis_tool_brush.cc b/plugins/tools/basictools/kis_tool_brush.ccindex e699298a6a..923a04c3b5 100644--- a/plugins/tools/basictools/kis_tool_brush.cc+++ b/plugins/tools/basictools/kis_tool_brush.cc@@ -356,7 +356,7 @@ QWidget * KisToolBrush::createOptionWidget()<< i18nc("@item:inlistbox Brush Smoothing", "None")<< i18nc("@item:inlistbox Brush Smoothing", "Basic")<< i18nc("@item:inlistbox Brush Smoothing", "Weighted")- << i18nc("@item:inlistbox Brush Smoothing", "Pixel (Beta)")+ << i18nc("@item:inlistbox Brush Smoothing", "Pixel")<< i18nc("@item:inlistbox Brush Smoothing", "Stabilizer"));connect(m_cmbSmoothingType, SIGNAL(currentIndexChanged(int)), this, SLOT(slotSetSmoothingType(int)));addOptionWidgetOption(m_cmbSmoothingType, new QLabel(i18n("Brush Smoothing:"), optionsWidget));