Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-23 20:45:53 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-23 20:45:53 +0300
commit7dd48d7271047e2d18cc92d2fb0d3d4e9f62cb53 (patch)
tree77e1def438bcd11482517f73203c0f695035213c /NesTiler/Palette.cs
parent2059d5e112e8a9bb0064c132677bd723154af424 (diff)
Optimization.
Diffstat (limited to 'NesTiler/Palette.cs')
-rw-r--r--NesTiler/Palette.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/NesTiler/Palette.cs b/NesTiler/Palette.cs
index 6835dd2..0dc31ff 100644
--- a/NesTiler/Palette.cs
+++ b/NesTiler/Palette.cs
@@ -33,7 +33,7 @@ namespace com.clusterrr.Famicom.NesTiler
// Empty palette
}
- public Palette(SKBitmap image, int leftX, int topY, int width, int height, Color bgColor)
+ public Palette(FastBitmap image, int leftX, int topY, int width, int height, Color bgColor)
{
Dictionary<Color, int> colorCounter = new Dictionary<Color, int>();
for (int y = topY; y < topY + height; y++)
@@ -69,7 +69,7 @@ namespace com.clusterrr.Famicom.NesTiler
if (colorsList.Count > i) this[i + 1] = colorsList[i];
}
- public double GetTileDelta(SKBitmap image, int leftX, int topY, int width, int height, Color bgColor)
+ public double GetTileDelta(FastBitmap image, int leftX, int topY, int width, int height, Color bgColor)
{
double delta = 0;
for (int y = topY; y < topY + height; y++)