diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-04-05 23:32:35 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-06 08:47:56 -0700 |
commit | 305644b00bead638c75a02f095ef10f1270abd84 (patch) | |
tree | 32e6216cabb5c7215d1a931db7ec13707da10eb3 | |
parent | 80c3e6561612273c488658fca9f9b6c37920cda9 (diff) | |
download | meta-openembedded-305644b00bead638c75a02f095ef10f1270abd84.tar.gz |
icon-slicer: Fix hotspot y coordinates
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch | 27 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb | 6 |
2 files changed, 31 insertions, 2 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 | } | ||
diff --git a/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb b/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb index 991133185f..8079f871d1 100644 --- a/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb +++ b/meta-oe/recipes-devtools/icon-slicer/icon-slicer_0.3.bb | |||
@@ -1,10 +1,12 @@ | |||
1 | LICENSE = "GPL-2.0-only" | 1 | LICENSE = "GPL-2.0-only" |
2 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 2 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
3 | 3 | ||
4 | DEPENDS = "gdk-pixbuf popt" | 4 | DEPENDS = "gdk-pixbuf popt xcursorgen" |
5 | 5 | ||
6 | SRC_URI = "http://freedesktop.org/software/${BPN}/releases/${BPN}-${PV}.tar.gz \ | 6 | SRC_URI = "http://freedesktop.org/software/${BPN}/releases/${BPN}-${PV}.tar.gz \ |
7 | file://0001-Makefile.am-no-examples.patch" | 7 | file://0001-Makefile.am-no-examples.patch \ |
8 | file://hotspotfix.patch \ | ||
9 | " | ||
8 | SRC_URI[sha256sum] = "05f0216dd0c25a17859de66357f64da5033375b6fbf5f31ca54867311160b64d" | 10 | SRC_URI[sha256sum] = "05f0216dd0c25a17859de66357f64da5033375b6fbf5f31ca54867311160b64d" |
9 | 11 | ||
10 | inherit autotools pkgconfig | 12 | inherit autotools pkgconfig |