Skip to content

Commit

Permalink
Fixed color changing in the slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Pegacraft committed Nov 12, 2020
1 parent ae340a4 commit 33fe248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/engine/mechanics/Slider.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ else if (mouseListener.isHeld(1)) {

@Override
public void renderLoop() {
barColor = new Color(Color.DARK_GRAY.getRed(), Color.DARK_GRAY.getGreen(), Color.DARK_GRAY.getBlue(), barAlpha);
barColor = new Color(barColor.getRed(), barColor.getGreen(), barColor.getBlue(), barAlpha);
g.setColor(barColor);
g.fillRect(x, y, barLength, barThickness);
g.setColor(sliderColor);
Expand Down

0 comments on commit 33fe248

Please sign in to comment.