Skip to content

Commit

Permalink
"縮小表示時に、64分音符が非アクティブパートで表示されていない" を修正しました. (line)
Browse files Browse the repository at this point in the history
  • Loading branch information
fourthline committed May 2, 2014
1 parent 7e09c04 commit a335ee8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fourthline/mabiicco/ui/PianoRollView.java
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,11 @@ private void drawNote(Graphics2D g, MMLNoteEvent noteEvent, Color rectColor, Col
if (width > 1) width--;

g.setColor(fillColor);
g.fillRect(x+1, y+1, width, height-1);
if (width != 0) {
g.fillRect(x+1, y+1, width, height-1);
} else {
g.drawLine(x+1, y+1, x+1, y+height-1);
}
g.setColor(rectColor);
g.drawLine(x+1, y+1, x+1, y+height-1);
g.drawLine(x+width+1, y+height-1, x+width+1, y+1);
Expand Down

0 comments on commit a335ee8

Please sign in to comment.