From ff626613829be4c894bc4e556fb084da3c73f679 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sun, 27 Aug 2023 17:25:33 +0000 Subject: [PATCH 1/2] Update minart to 0.5.3 --- examples/release/example-minart-backend.scala | 2 +- examples/snapshot/example-minart-backend.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/release/example-minart-backend.scala b/examples/release/example-minart-backend.scala index 51b01eb..4626f61 100644 --- a/examples/release/example-minart-backend.scala +++ b/examples/release/example-minart-backend.scala @@ -1,5 +1,5 @@ //> using scala "3.3.0" -//> using lib "eu.joaocosta::minart::0.5.2" +//> using lib "eu.joaocosta::minart::0.5.3" //> using lib "eu.joaocosta::interim::0.1.4" /** This file contains a simple graphical backend written in Minart. diff --git a/examples/snapshot/example-minart-backend.scala b/examples/snapshot/example-minart-backend.scala index cab097c..0950be5 100644 --- a/examples/snapshot/example-minart-backend.scala +++ b/examples/snapshot/example-minart-backend.scala @@ -1,5 +1,5 @@ //> using scala "3.3.0" -//> using lib "eu.joaocosta::minart::0.5.2" +//> using lib "eu.joaocosta::minart::0.5.3" //> using lib "eu.joaocosta::interim::0.1.5-SNAPSHOT" /** This file contains a simple graphical backend written in Minart. From a744e7fc493ee8eb72e97fb4e2691fd735cce43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Costa?= Date: Sun, 27 Aug 2023 21:19:17 +0200 Subject: [PATCH 2/2] Fix example minart backend --- examples/release/example-minart-backend.scala | 2 +- examples/snapshot/example-minart-backend.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/release/example-minart-backend.scala b/examples/release/example-minart-backend.scala index 4626f61..ad6d8b5 100644 --- a/examples/release/example-minart-backend.scala +++ b/examples/release/example-minart-backend.scala @@ -86,7 +86,7 @@ object MinartBackend: op.asDrawChars().foreach { case RenderOp.DrawChar(Rect(x, y, _, _), color, char) => val charSprite = font.coloredChar(char, MinartColor(color.r, color.g, color.b)) canvas - .blit(charSprite, Some(MinartColor(255, 0, 255)))(x, y) + .blit(charSprite, BlendMode.ColorMask(MinartColor(255, 0, 255)))(x, y) } case RenderOp.Custom(Rect(x, y, w, h), color, _) => canvas.fillRegion(x, y, w, h, MinartColor(color.r, color.g, color.b)) diff --git a/examples/snapshot/example-minart-backend.scala b/examples/snapshot/example-minart-backend.scala index 0950be5..04bb1c5 100644 --- a/examples/snapshot/example-minart-backend.scala +++ b/examples/snapshot/example-minart-backend.scala @@ -86,7 +86,7 @@ object MinartBackend: op.asDrawChars().foreach { case RenderOp.DrawChar(Rect(x, y, _, _), color, char) => val charSprite = font.coloredChar(char, MinartColor(color.r, color.g, color.b)) canvas - .blit(charSprite, Some(MinartColor(255, 0, 255)))(x, y) + .blit(charSprite, BlendMode.ColorMask(MinartColor(255, 0, 255)))(x, y) } case RenderOp.Custom(Rect(x, y, w, h), color, _) => canvas.fillRegion(x, y, w, h, MinartColor(color.r, color.g, color.b))