Skip to content

Commit

Permalink
Added missing section/area redraw code in LinearSkin (fix for #38)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanSolo committed Jul 26, 2016
1 parent df145c2 commit ed9c5d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/eu/hansolo/medusa/skins/LinearSkin.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ private void registerListeners() {

// ******************** Methods *******************************************
protected void handleEvents(final String EVENT_TYPE) {
System.out.println(EVENT_TYPE);
if ("RESIZE".equals(EVENT_TYPE)) {
resize();
redraw();
Expand Down Expand Up @@ -774,6 +775,13 @@ private void redraw() {
drawLed();
}

// Tickmarks, Sections and Areas
ticksAndSectionsCanvas.setCache(false);
ticksAndSections.clearRect(0, 0, ticksAndSectionsCanvas.getWidth(), ticksAndSectionsCanvas.getHeight());
drawTickMarks(ticksAndSections);
ticksAndSectionsCanvas.setCache(true);
ticksAndSectionsCanvas.setCacheHint(CacheHint.QUALITY);

// LCD
LcdDesign lcdDesign = getSkinnable().getLcdDesign();
Color[] lcdColors = lcdDesign.getColors();
Expand Down

0 comments on commit ed9c5d0

Please sign in to comment.