mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
icon-slicer: Fix hotspot y coordinates
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
80c3e65616
commit
305644b00b
27
meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch
Normal file
27
meta-oe/recipes-devtools/icon-slicer/files/hotspotfix.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
Description: Fix hotspot y coordinate
|
||||
Author: Tim Swast <tswast@gmail.com>
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@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;
|
||||
}
|
||||
|
|
@ -1,10 +1,12 @@
|
|||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
|
||||
DEPENDS = "gdk-pixbuf popt"
|
||||
DEPENDS = "gdk-pixbuf popt xcursorgen"
|
||||
|
||||
SRC_URI = "http://freedesktop.org/software/${BPN}/releases/${BPN}-${PV}.tar.gz \
|
||||
file://0001-Makefile.am-no-examples.patch"
|
||||
file://0001-Makefile.am-no-examples.patch \
|
||||
file://hotspotfix.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "05f0216dd0c25a17859de66357f64da5033375b6fbf5f31ca54867311160b64d"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user