Skip to content

Commit b58f284

Browse files
committed
fix: pen only drawing dots
1 parent fa26571 commit b58f284

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Changelog
33
index: 4
44
---
55

6+
## 3.2.1
7+
8+
- 🐛 Fix: Pen only drawing dots
9+
610
## 3.2.0
711

812
- 🚀 Feat: Introducing the new class `Window`. Every Scratch for Java program can have on `Window`-object. A `Window`-object contains one stage object, which can be change during the runtime. This allows for using multiple stages in your program. For example, you could have one stage for the menu, one for the game and one for the credits.

src/org/openpatch/scratch/Timer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public boolean forMillis(int millis) {
4646
public boolean afterMillis(int millis) {
4747
int nowMillis = millis();
4848
if (startMillisAfter < 0) {
49-
startMillisAfter = nowMillis;
49+
startMillisAfter = nowMillis;
5050
}
5151
return nowMillis >= startMillisAfter + millis;
5252
}

src/org/openpatch/scratch/extensions/Pen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void draw() {
211211
}
212212
previousPoint = point;
213213
}
214-
if (!this.down || pointsBufferSize > 0) {
214+
if (!this.down) {
215215
pointsBufferIter.remove();
216216
}
217217
}

0 commit comments

Comments
 (0)