diff options
Diffstat (limited to 'meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch')
-rw-r--r-- | meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch b/meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch new file mode 100644 index 0000000000..1f8730aba0 --- /dev/null +++ b/meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | Description: Fix hotspot y coordinate | ||
2 | Author: Tim Swast <tswast@gmail.com> | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | --- a/src/main.c | ||
7 | +++ b/src/main.c | ||
8 | @@ -103,7 +103,7 @@ | ||
9 | if (n_channels == 3) | ||
10 | { | ||
11 | out->x = start_x; | ||
12 | - out->y = start_x; | ||
13 | + out->y = start_y; | ||
14 | out->width = source->gridsize; | ||
15 | out->height = source->gridsize; | ||
16 | |||
17 | @@ -137,8 +137,8 @@ | ||
18 | { | ||
19 | min_x = start_x + i; | ||
20 | max_x = start_x + i + 1; | ||
21 | - min_y = start_y + i; | ||
22 | - max_y = start_y + i + 1; | ||
23 | + min_y = start_y + j; | ||
24 | + max_y = start_y + j + 1; | ||
25 | |||
26 | found = TRUE; | ||
27 | } | ||