From 210a1fb1c3fa0c8924a6d915c46884c27243d82e Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Fri, 23 Feb 2024 10:08:14 +0300 Subject: [PATCH] fix - Fixed Diamond not showing a diamond --- We've fixed the Diamond screensaver not showing the diamond. --- Type: fix Breaking: False Doc Required: False Part: 1/1 --- .../Screensavers/Diamond.cs | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/public/Nitrocid.Addons/Nitrocid.ScreensaverPacks/Screensavers/Diamond.cs b/public/Nitrocid.Addons/Nitrocid.ScreensaverPacks/Screensavers/Diamond.cs index 43ca5c9a0b..7d1edf0432 100644 --- a/public/Nitrocid.Addons/Nitrocid.ScreensaverPacks/Screensavers/Diamond.cs +++ b/public/Nitrocid.Addons/Nitrocid.ScreensaverPacks/Screensavers/Diamond.cs @@ -119,7 +119,7 @@ public override void ScreensaverLogic() // Determine the color by draw mode var finalColor = drawingEdge ? selectedColor : colorShaded; - buffer.Append(TextWriterWhereColor.RenderWhere(" ", left, top, Color.Empty, finalColor)); + buffer.Append(TextWriterWhereColor.RenderWhereColorBack(" ", left, top, Color.Empty, finalColor)); } } @@ -135,7 +135,7 @@ public override void ScreensaverLogic() // Determine the color by draw mode var finalColor = drawingEdge ? selectedColor : colorShaded; - buffer.Append(TextWriterWhereColor.RenderWhere(" ", left, top, Color.Empty, finalColor)); + buffer.Append(TextWriterWhereColor.RenderWhereColorBack(" ", left, top, Color.Empty, finalColor)); } } @@ -204,24 +204,24 @@ public override void ScreensaverLogic() Color colCenter = new((int)currentCenterR, (int)currentCenterG, (int)currentCenterB); Color colRest = new((int)currentRestR, (int)currentRestG, (int)currentRestB); buffer.Append( - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom) + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom) ); // Now, write the diamond buffer @@ -252,24 +252,24 @@ public override void ScreensaverLogic() Color colCenter = new((int)currentCenterR, (int)currentCenterG, (int)currentCenterB); Color colRest = new((int)currentRestR, (int)currentRestG, (int)currentRestB); buffer.Append( - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) + - TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom) + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) + + TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom) ); // Now, write the diamond buffer