From 0a6665ee207dd002cac6ccc306cbbe982d42d499 Mon Sep 17 00:00:00 2001 From: David North Date: Thu, 7 Nov 2024 07:29:23 +0000 Subject: [PATCH] Changes `Some` to `Option` to account for `null` values --- .../indigo/platform/renderer/ScreenCaptureConfig.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indigo/indigo/src/main/scala/indigo/platform/renderer/ScreenCaptureConfig.scala b/indigo/indigo/src/main/scala/indigo/platform/renderer/ScreenCaptureConfig.scala index 4408f8f23..396349631 100644 --- a/indigo/indigo/src/main/scala/indigo/platform/renderer/ScreenCaptureConfig.scala +++ b/indigo/indigo/src/main/scala/indigo/platform/renderer/ScreenCaptureConfig.scala @@ -33,7 +33,7 @@ final case class ScreenCaptureConfig( * @return */ def withName(name: String): ScreenCaptureConfig = - this.copy(name = Some(name)) + this.copy(name = Option(name)) /** Set the cropping rectangle of the capture * @@ -41,7 +41,7 @@ final case class ScreenCaptureConfig( * @return */ def withCrop(rect: Rectangle): ScreenCaptureConfig = - this.copy(croppingRect = Some(rect)) + this.copy(croppingRect = Option(rect)) /** Set the scale of the capture * @@ -57,7 +57,7 @@ final case class ScreenCaptureConfig( * @return */ def withScale(scale: Vector2): ScreenCaptureConfig = - this.copy(scale = Some(scale)) + this.copy(scale = Option(scale)) /** Set the image type of the capture *