update screen if pattern changes without row changing
this is solely for strobe - CELL II, pretty much...
This commit is contained in:
parent
34e975ef55
commit
2679587654
1 changed files with 2 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ function redrawScreen() {
|
|||
}
|
||||
}
|
||||
|
||||
if (e.row != shown_row) {
|
||||
if (e.row != shown_row || e.pat != pat_canvas_patnum) {
|
||||
if (e.pat != pat_canvas_patnum) {
|
||||
var p = player.xm.patterns[e.pat];
|
||||
if (p) {
|
||||
|
|
@ -217,6 +217,7 @@ function redrawScreen() {
|
|||
pat_canvas_patnum = e.pat;
|
||||
}
|
||||
}
|
||||
|
||||
var gfx = document.getElementById("gfxpattern");
|
||||
ctx = gfx.getContext('2d');
|
||||
ctx.fillStyle = '#000';
|
||||
|
|
|
|||
Loading…
Reference in a new issue