render volume effect column with the icons
This commit is contained in:
parent
c4370f447c
commit
27d0a0b1c3
1 changed files with 1 additions and 2 deletions
3
xm.js
3
xm.js
|
|
@ -65,8 +65,7 @@ function RenderPattern(canv, pattern) {
|
||||||
if (vol < 0x10) {
|
if (vol < 0x10) {
|
||||||
ctx.drawImage(fontimg, 312, 0, 8, 8, dx, dy, 8, 8);
|
ctx.drawImage(fontimg, 312, 0, 8, 8, dx, dy, 8, 8);
|
||||||
} else {
|
} else {
|
||||||
vol -= 0x10;
|
ctx.drawImage(fontimg, 8*(vol>>4) + 56*8, 4*8, 8, 8, dx, dy, 8, 8);
|
||||||
ctx.drawImage(fontimg, 8*(vol>>4), 4*8, 4, 8, dx, dy, 4, 8);
|
|
||||||
ctx.drawImage(fontimg, 8*(vol&15), 4*8, 4, 8, dx+4, dy, 4, 8);
|
ctx.drawImage(fontimg, 8*(vol&15), 4*8, 4, 8, dx+4, dy, 4, 8);
|
||||||
}
|
}
|
||||||
dx += 8;
|
dx += 8;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue