diff --git a/indigo/indigo-extras/src/test/scala/indigoextras/ui/InputFieldTests.scala b/indigo/indigo-extras/src/test/scala/indigoextras/ui/InputFieldTests.scala index 56c7afdd5..81f96cec9 100644 --- a/indigo/indigo-extras/src/test/scala/indigoextras/ui/InputFieldTests.scala +++ b/indigo/indigo-extras/src/test/scala/indigoextras/ui/InputFieldTests.scala @@ -1,6 +1,7 @@ package indigoextras.ui import indigo.platform.assets.DynamicText +import indigo.platform.renderer.Renderer import indigo.shared.AnimationsRegister import indigo.shared.BoundaryLocator import indigo.shared.FontRegister @@ -281,7 +282,8 @@ class InputFieldTests extends munit.FunSuite { Dice.loaded(1), new InputState(Mouse.default, new Keyboard(keysUp, Batch.empty, None), Gamepad.default, Pointers.default), new BoundaryLocator(new AnimationsRegister, new FontRegister, new DynamicText), - () + (), + Renderer.blackHole ) object Samples { diff --git a/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl1/RendererWebGL1.scala b/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl1/RendererWebGL1.scala index 05e85d58d..ed1440f13 100644 --- a/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl1/RendererWebGL1.scala +++ b/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl1/RendererWebGL1.scala @@ -103,7 +103,9 @@ final class RendererWebGL1( private given CanEqual[Option[Int], Option[Int]] = CanEqual.derived def captureScreen( + @SuppressWarnings(Array("scalafix:DisableSyntax.defaultArgs")) clippingRect: Rectangle = Rectangle(Size(screenWidth, screenHeight)), + @SuppressWarnings(Array("scalafix:DisableSyntax.defaultArgs")) excludeLayers: Batch[BindingKey] = Batch.empty ): Batch[Byte] = { val canvas = dom.document.createElement("canvas").asInstanceOf[html.Canvas] diff --git a/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl2/RendererWebGL2.scala b/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl2/RendererWebGL2.scala index 5ffd5500c..01e750b7c 100644 --- a/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl2/RendererWebGL2.scala +++ b/indigo/indigo/src/main/scala/indigo/platform/renderer/webgl2/RendererWebGL2.scala @@ -102,7 +102,7 @@ final class RendererWebGL2( var orthographicProjectionMatrixNoMagFlipped: scalajs.js.Array[Float] = null // Store previous data in order to take screenshots - @SuppressWarnings(Array("scalafix:DisableSyntax.var", "scalafix:DisableSyntax.null")) + @SuppressWarnings(Array("scalafix:DisableSyntax.var")) private var _prevSceneData: ProcessedSceneData = null @SuppressWarnings(Array("scalafix:DisableSyntax.var")) private var _prevGameRuntime: Seconds = Seconds.zero @@ -233,7 +233,9 @@ final class RendererWebGL2( private given CanEqual[Option[Int], Option[Int]] = CanEqual.derived def captureScreen( + @SuppressWarnings(Array("scalafix:DisableSyntax.defaultArgs")) clippingRect: Rectangle = Rectangle(Size(screenWidth, screenHeight)), + @SuppressWarnings(Array("scalafix:DisableSyntax.defaultArgs")) excludeLayers: Batch[BindingKey] = Batch.empty ): Batch[Byte] = { val canvas = dom.document.createElement("canvas").asInstanceOf[html.Canvas] diff --git a/indigo/indigo/src/test/scala/indigo/entry/StandardFrameProcessorTests.scala b/indigo/indigo/src/test/scala/indigo/entry/StandardFrameProcessorTests.scala index 2302f743a..1f5c9a7c6 100644 --- a/indigo/indigo/src/test/scala/indigo/entry/StandardFrameProcessorTests.scala +++ b/indigo/indigo/src/test/scala/indigo/entry/StandardFrameProcessorTests.scala @@ -1,6 +1,7 @@ package indigo.entry import indigo.platform.assets.DynamicText +import indigo.platform.renderer.Renderer import indigo.shared.AnimationsRegister import indigo.shared.BoundaryLocator import indigo.shared.FontRegister @@ -34,7 +35,8 @@ class StandardFrameProcessorTests extends munit.FunSuite { Batch(EventsOnlyEvent.Increment), InputState.default, Dice.loaded(0), - boundaryLocator + boundaryLocator, + Renderer.blackHole ) val outModel = outcome.unsafeGet._1 diff --git a/indigo/indigo/src/test/scala/indigo/scenes/FakeFrameContext.scala b/indigo/indigo/src/test/scala/indigo/scenes/FakeFrameContext.scala index 63dd0ebba..f4d720250 100644 --- a/indigo/indigo/src/test/scala/indigo/scenes/FakeFrameContext.scala +++ b/indigo/indigo/src/test/scala/indigo/scenes/FakeFrameContext.scala @@ -1,6 +1,7 @@ package indigo.scenes import indigo.platform.assets.DynamicText +import indigo.platform.renderer.Renderer import indigo.shared.AnimationsRegister import indigo.shared.BoundaryLocator import indigo.shared.FontRegister @@ -18,7 +19,8 @@ object FakeFrameContext { Dice.loaded(sides), InputState.default, new BoundaryLocator(new AnimationsRegister, new FontRegister, new DynamicText), - () + (), + Renderer.blackHole ) def context(sides: Int, time: Seconds): FrameContext[Unit] = @@ -27,7 +29,8 @@ object FakeFrameContext { Dice.loaded(sides), InputState.default, new BoundaryLocator(new AnimationsRegister, new FontRegister, new DynamicText), - () + (), + Renderer.blackHole ) def context(sides: Int, time: Seconds, delta: Seconds): FrameContext[Unit] = @@ -36,7 +39,8 @@ object FakeFrameContext { Dice.loaded(sides), InputState.default, new BoundaryLocator(new AnimationsRegister, new FontRegister, new DynamicText), - () + (), + Renderer.blackHole ) }