Skip to content

Commit

Permalink
Reactivate the unused map displays.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Tomes committed Jan 5, 2024
1 parent abe8e04 commit 9fcf332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.ms
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ Display.initialize = function()

Display.particles = MapDisplay.make(PARTICLES_0, PARTICLES_1)

// display(MAP_0).mode = displayMode.off
// display(MAP_1).mode = displayMode.off

Display.map = MapDisplay.make(MAP_0, MAP_1)

end function

Display.clear = function()
Expand Down
2 changes: 2 additions & 0 deletions src/MapDisplay.ms
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ MapDisplay.make = function(displayNumberFront, displayNumberBack)
dsp.activeDisplay = 0

dsp.display0 = dsp.initTiles(displayNumberFront)

dsp.display0Back = dsp.initTiles(displayNumberBack)

dsp.display1 = dsp.initTiles(displayNumberFront)
Expand All @@ -28,6 +29,7 @@ MapDisplay.make = function(displayNumberFront, displayNumberBack)
dsp.display = dsp.display0
dsp.displayBack = dsp.display0Back
dsp.display.install dsp.displayNumberFront
// TODO: displayBack is unused, but still has to be set. Why?
dsp.displayBack.install dsp.displayNumberBack

return dsp
Expand Down

0 comments on commit 9fcf332

Please sign in to comment.