@@ -25,6 +25,7 @@ let Ns5rDisplay = class extends RootDisplay {
25
25
#pixelLit = 255 ;
26
26
#pixelOff = 0 ;
27
27
#refreshed = true ;
28
+ #lastTrue = false ;
28
29
useBlur = false ; // Pixel blur will only activate if this is enabled
29
30
xgFont = new MxFont40 ( "./data/bitmaps/xg/font.tsv" ) ;
30
31
trueFont = new MxFont40 ( "./data/bitmaps/korg/font.tsv" , "./data/bitmaps/xg/font.tsv" ) ;
@@ -367,6 +368,9 @@ let Ns5rDisplay = class extends RootDisplay {
367
368
// Screen buffer write finish.
368
369
// Determine if full render is required.
369
370
let drawPixMode = false ;
371
+ if ( this . #lastTrue != trueMode ) {
372
+ this . #refreshed = true ;
373
+ } ;
370
374
if ( this . #refreshed) {
371
375
// Full render required.
372
376
// Clear all pixels.
@@ -376,13 +380,13 @@ let Ns5rDisplay = class extends RootDisplay {
376
380
ctx . font = '11px "Arial Web"' ;
377
381
ctx . fillStyle = "#000e" ;
378
382
ctx . fillText ( "MIDI. CH" , 58 , 10 ) ;
379
- ctx . fillText ( "VOL" , 153.5 , 10 ) ;
380
- ctx . fillText ( "EXP" , 231.5 , 10 ) ;
381
- ctx . fillText ( "PAN" , 322.5 , 10 ) ;
382
- ctx . fillText ( "REV" , 405 , 10 ) ;
383
- ctx . fillText ( "CHO" , 484 , 10 ) ;
384
- ctx . fillText ( "BRT" , 561.5 , 10 ) ;
385
- ctx . fillText ( "EFFECT TYPE" , 738 , 10 ) ;
383
+ ctx . fillText ( "VOL" , 153.5 + ( + trueMode * 12 ) , 10 ) ;
384
+ ctx . fillText ( "EXP" , 231.5 + ( + trueMode * 12 ) , 10 ) ;
385
+ ctx . fillText ( "PAN" , 322.5 + ( + trueMode * 12 ) , 10 ) ;
386
+ ctx . fillText ( "REV" , 405 + ( + trueMode * 18 ) , 10 ) ;
387
+ ctx . fillText ( "CHO" , 484 + ( + trueMode * 18 ) , 10 ) ;
388
+ ! trueMode && ctx . fillText ( "BRT" , 561.5 , 10 ) ;
389
+ ctx . fillText ( "EFFECT TYPE" , 738 - ( + trueMode * 18 ) , 10 ) ;
386
390
ctx . fillText ( "PART" , 34 , 262 ) ;
387
391
let circle = 2 * Math . PI ;
388
392
for ( let c = 1 ; c < 33 ; c ++ ) {
@@ -446,6 +450,7 @@ let Ns5rDisplay = class extends RootDisplay {
446
450
this . #omdb[ i ] = e ;
447
451
} ;
448
452
} ) ;
453
+ this . #lastTrue = trueMode ;
449
454
} ;
450
455
} ;
451
456
0 commit comments