Skip to content

Commit d2bac1e

Browse files
committed
0.2.1 fix rectangle missing fill color
1 parent 3242fb3 commit d2bac1e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>studio.programkode</groupId>
88
<artifactId>jgdk</artifactId>
9-
<version>0.2.0</version>
9+
<version>0.2.1</version>
1010

1111
<name>Java Game Development Kit</name>
1212
<description>Simple Java Game Development Kit, allowing you to create simple prototypes and games.</description>

src/main/java/studio/programkode/jgdk/API.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ public void drawRectangle(int x, int y, int width, int height, Anchor anchor) {
234234
graphics.setColor(this.getColor());
235235

236236
if (this.flagFill) {
237+
graphics.setColor(this.getFillColor());
238+
237239
graphics.fillRect(
238240
(int)(x - (width*transform[0])),
239241
(int)(y - (height*transform[1])),

0 commit comments

Comments
 (0)