Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snctfd committed Nov 13, 2018
1 parent bc065f0 commit 62b8309
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ abstract class BlockGame(
def drawTextInMessageArea(msg: String, x: Int, y: Int, color: Color = pixelWindow.foreground, size: Int = blockSize): Unit = {
require(y < messageAreaHeight && y >= 0, s"not in message area: y = $y")
require(x < dim._1 * blockSize && x >= 0, s"not in message area: x = $x")
pixelWindow.drawText(msg, x * blockSize, y + dim._2 * blockSize, color, size)
pixelWindow.drawText(msg, x * blockSize, (y + dim._2) * blockSize, color, size)
}

/** Clear a rectangle in the message area in block coordinates. */
Expand Down

0 comments on commit 62b8309

Please sign in to comment.