Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianscar authored and Tianscar committed Jul 1, 2021
1 parent f25f947 commit 3273b0c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId "com.ansdoship.pixelarteditor"
minSdkVersion 16
targetSdkVersion 30
versionCode 17
versionName "0.0.3.7-beta"
versionCode 18
versionName "0.0.3.8-beta"
vectorDrawables {
useSupportLibrary = true
}
Expand Down
17 changes: 14 additions & 3 deletions app/src/main/java/com/ansdoship/pixelarteditor/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
import com.tianscar.androidutils.ColorFactory;
import com.tianscar.androidutils.EnvironmentUtils;
import com.tianscar.androidutils.MathUtils;
import com.tianscar.androidutils.ScreenUtils;
import com.tianscar.simplebitmap.BitmapDecoder;
import com.tianscar.simplebitmap.BitmapEncoder;
import com.tianscar.simplebitmap.BitmapUtils;
Expand Down Expand Up @@ -330,6 +329,18 @@ public void run() {

flushPaint(listPalettes.getCheckedPaletteColor());

switch (toolFlag) {
case ToolFlag.PAINT:
case ToolFlag.ERASER:
setStrokeCap(Paint.Cap.ROUND);
setStrokeJoin(Paint.Join.ROUND);
break;
case ToolFlag.SHAPE:
setStrokeCap(Paint.Cap.SQUARE);
setStrokeJoin(Paint.Join.MITER);
break;
}

}

private void saveData() {
Expand Down Expand Up @@ -429,8 +440,8 @@ private int IMAGE_TO_CENTER_Y_DEFAULT() {

public final static int IMAGE_WIDTH_MIN = 1;
public final static int IMAGE_HEIGHT_MIN = 1;
public final static int IMAGE_WIDTH_MAX = 2048;
public final static int IMAGE_HEIGHT_MAX = 2048;
public final static int IMAGE_WIDTH_MAX = 1024;
public final static int IMAGE_HEIGHT_MAX = 1024;

public static int TEXT_SIZE_INTEGER() {
return ApplicationUtils.getResources().getInteger(R.integer.text_size_integer);
Expand Down

0 comments on commit 3273b0c

Please sign in to comment.