# HG changeset patch # User Jason Maltzen # Date 2019-11-02 13:25:48 # Node ID 2154d10fecad78be8cb510eed05cca5ee32a9704 # Parent d7ce199a7c3a6bc7b0c0e2f1fd5057268febe068 Fix another bug in scanning where it was scanning off the right side of the image. diff --git a/DesertPaintLab.csproj b/DesertPaintLab.csproj --- a/DesertPaintLab.csproj +++ b/DesertPaintLab.csproj @@ -24,7 +24,7 @@ 1.0.0.%2a false true - 9.0.3 + 9.0.4 true diff --git a/DesertPaintLab.sln b/DesertPaintLab.sln --- a/DesertPaintLab.sln +++ b/DesertPaintLab.sln @@ -41,6 +41,6 @@ Global $0.StandardHeader = $5 $0.VersionControlPolicy = $6 description = Desert Paint Lab utility for A Tale in the Desert - version = 9.0.3 + version = 9.0.4 EndGlobalSection EndGlobal diff --git a/ReactionRecorder.cs b/ReactionRecorder.cs --- a/ReactionRecorder.cs +++ b/ReactionRecorder.cs @@ -336,7 +336,7 @@ namespace DesertPaintLab { int testPixel = solidUpperLeft + (yOff * stride); result &= IsColorMatch(swatch_r, swatch_r, swatch_r, pixBytes[testPixel], pixBytes[testPixel + 1], pixBytes[testPixel + 2]); - testPixel += ((swatchWidth - 1) * (x + 3)); + testPixel += ((swatchWidth - 1) * 3); result &= IsColorMatch(swatch_r, swatch_r, swatch_r, pixBytes[testPixel], pixBytes[testPixel + 1], pixBytes[testPixel + 2]); }