Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Dec 30, 2022
1 parent bcad6ab commit 1805b62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected void doDraw(Graphics2D graphics) {
Color temp = graphics.getColor();
graphics.setColor(backgroundColor);
graphics.fillRect(getX(), getY(), getWidth(), getHeight());
graphics.setBackground(temp);
graphics.setColor(temp);
}
}
}

0 comments on commit 1805b62

Please sign in to comment.