diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..19aa949 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.7.12 +fb28cb61e3b756de7125c1af8e43770cb7cd006f diff --git a/.scalafmt.conf b/.scalafmt.conf index bce25c7..76886aa 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.7.11 +version = 3.7.12 runner.dialect = "scala3" align.preset = more diff --git a/examples/snapshot/example-minart-backend.scala b/examples/snapshot/example-minart-backend.scala index 9eab0a7..3a5fd18 100644 --- a/examples/snapshot/example-minart-backend.scala +++ b/examples/snapshot/example-minart-backend.scala @@ -22,7 +22,7 @@ object MinartBackend: def coloredChar(char: Char, color: MinartColor): SurfaceView case class BitmapFont(file: String, width: Int, height: Int, fontFirstChar: Char = '\u0000') extends Font: - private val spriteSheet = SpriteSheet(Image.loadBmpImage(Resource(file)).get, width, height) + private val spriteSheet = SpriteSheet(Image.loadBmpImage(Resource(file)).get, width, height) def charWidth(char: Char): Int = width def coloredChar(char: Char, color: MinartColor): SurfaceView = spriteSheet.getSprite(char.toInt - fontFirstChar.toInt).map { @@ -38,7 +38,7 @@ object MinartBackend: else val scale = fontSize / baseFont.height.toDouble new Font: - def charWidth(char: Char): Int = (baseFont.width * scale).toInt + def charWidth(char: Char): Int = (baseFont.width * scale).toInt def coloredChar(char: Char, color: MinartColor): SurfaceView = baseFont.coloredChar(char, color).scale(scale) // Gloop font by Polyducks: https://twitter.com/PolyDucks