Skip to content
Snippets Groups Projects
Commit 3e5bca71 authored by Rene's avatar Rene
Browse files

Bugfixing im Algorithmus searchForColorRectII

parent 68746320
No related branches found
No related tags found
No related merge requests found
...@@ -274,7 +274,7 @@ rectangle searchForColorRectII (uint32_t color, XImage *image, unsigned width, u ...@@ -274,7 +274,7 @@ rectangle searchForColorRectII (uint32_t color, XImage *image, unsigned width, u
{ {
rowMax = countY[row]; rowMax = countY[row];
} }
if (countX[row] == 0 || countX[0] < rowMin) { if (countX[row] == 0 || countX[row] < rowMin) {
rowMin = countX[row]; rowMin = countX[row];
} }
} }
...@@ -285,7 +285,7 @@ rectangle searchForColorRectII (uint32_t color, XImage *image, unsigned width, u ...@@ -285,7 +285,7 @@ rectangle searchForColorRectII (uint32_t color, XImage *image, unsigned width, u
{ {
columnMax = countX[column]; columnMax = countX[column];
} }
if (countX[column] == 0 || countX[0] < columnMin) { if (countX[column] == 0 || countX[column] < columnMin) {
columnMin = countX[column]; columnMin = countX[column];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment