From 498dc337333643b3f2d6c108c21834769762c30e Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Mon, 7 Aug 2023 17:15:02 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.7.12 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From fb28cb61e3b756de7125c1af8e43770cb7cd006f Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Mon, 7 Aug 2023 17:15:12 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.7.12 Executed command: scalafmt --non-interactive --- examples/snapshot/example-minart-backend.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 2b7073e2cb2a989de12db1df735cf2aea7b7eff8 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Mon, 7 Aug 2023 17:15:12 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.7.12' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs 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