summarylogtreecommitdiffstats
path: root/hotspotfix.patch
blob: 5924f003bbaa002428de2ee82b505b5017e455e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Fix hotspot y coordinate
Author: Tim Swast <tswast@gmail.com>

--- a/src/main.c
+++ b/src/main.c
@@ -103,7 +103,7 @@
   if (n_channels == 3)
     {
       out->x = start_x;
-      out->y = start_x;
+      out->y = start_y;
       out->width = source->gridsize;
       out->height = source->gridsize;
       
@@ -137,8 +137,8 @@
 		    {
 		      min_x = start_x + i;
 		      max_x = start_x + i + 1;
-		      min_y = start_y + i;
-		      max_y = start_y + i + 1;
+		      min_y = start_y + j;
+		      max_y = start_y + j + 1;
 
 		      found = TRUE;
 		    }