summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-12-03xcursorgen 1.0.8HEADxcursorgen-1.0.8masterAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Resolve -Wsign-conversion warnings from clangAlan Coopersmith1-8/+9
xcursorgen.c:169:62: warning: implicit conversion changes signedness: 'int' to 'XcursorPixel' (aka 'unsigned int') [-Wsign-conversion] p = (alpha << 24) | (red << 16) | (green << 8) | (blue << 0); ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ xcursorgen.c:269:39: warning: implicit conversion changes signedness: 'png_uint_32' (aka 'unsigned int') to 'int' [-Wsign-conversion] image = XcursorImageCreate(width, height); ~~~~~~~~~~~~~~~~~~ ^~~~~~ xcursorgen.c:269:32: warning: implicit conversion changes signedness: 'png_uint_32' (aka 'unsigned int') to 'int' [-Wsign-conversion] image = XcursorImageCreate(width, height); ~~~~~~~~~~~~~~~~~~ ^~~~~ xcursorgen.c:280:25: warning: implicit conversion changes signedness: 'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion] image->size = list->size; ~ ~~~~~~^~~~ xcursorgen.c:281:25: warning: implicit conversion changes signedness: 'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion] image->xhot = list->xhot; ~ ~~~~~~^~~~ xcursorgen.c:282:25: warning: implicit conversion changes signedness: 'int' to 'XcursorDim' (aka 'unsigned int') [-Wsign-conversion] image->yhot = list->yhot; ~ ~~~~~~^~~~ xcursorgen.c:283:26: warning: implicit conversion changes signedness: 'int' to 'XcursorUInt' (aka 'unsigned int') [-Wsign-conversion] image->delay = list->delay; ~ ~~~~~~^~~~~ xcursorgen.c:364:35: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] .height = height, ^~~~~~ xcursorgen.c:363:24: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] .width = width, ^~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Handle -Wimplicit-int-conversion warnings from clangAlan Coopersmith1-3/+3
xcursorgen.c:166:19: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] red = div_255((unsigned) red * (unsigned) alpha); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xcursorgen.c:167:19: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] green = div_255((unsigned) green * (unsigned) alpha); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xcursorgen.c:168:19: warning: implicit conversion loses integer precision: 'unsigned int' to 'unsigned char' [-Wimplicit-int-conversion] blue = div_255((unsigned) blue * (unsigned) alpha); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13premultiply_data(): Mark png argument unusedAlan Coopersmith2-2/+4
Clears clang warning: xcursorgen.c:152:30: warning: unused parameter 'png' [-Wunused-parameter] premultiply_data(png_structp png, png_row_infop row_info, png_bytep data) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-01-06xcursorgen 1.0.7xcursorgen-1.0.7Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Add README.md to EXTRA_DIST in Makefile.amAlan Coopersmith1-0/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-13Update README for gitlab migrationAlan Coopersmith2-25/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-08-25Convert to X.Org standard code styleAlan Coopersmith1-351/+324
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-25Use asprintf if available, instead of malloc+strcpy+strcatAlan Coopersmith2-0/+13
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-25Include more information in error messagesAlan Coopersmith1-7/+23
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-25Fix type mismatch warnings for loop index variablesAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-25Fix null pointer dereference on very large images.Tobias Stoeckmann1-0/+6
If xcursorgen encounters a PNG file which is larger than 32767 pixels in width or height, a null pointer dereference occurs because the return value of XcursorImageCreate is not checked. The largest possible value is 32767 for libXcursor, which is a hard coded limit due to a 16 bit integer used (0x7FFF). Fixes: https://gitlab.freedesktop.org/xorg/app/xcursorgen/issues/1 Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2014-06-02autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31xcursorgen 1.0.6xcursorgen-1.0.6Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-26Print which option was in error along with usage messageAlan Coopersmith1-0/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-23config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith1-3/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-23Combine usage message into single string/callAlan Coopersmith1-12/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-23Use C99 struct initializer for ximage in check_image()Alan Coopersmith1-14/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-23Change order of struct flist members to pack better on 64-bit archsAlan Coopersmith1-1/+1
As reported by clang: xcursorgen.c:42:9: warning: padding struct 'struct flist' with 4 bytes to align 'pngfile' [-Wpadded] char *pngfile; ^ xcursorgen.c:44:17: warning: padding struct 'struct flist' with 4 bytes to align 'next' [-Wpadded] struct flist *next; Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-22xcursorgen 1.0.5xcursorgen-1.0.5Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-02-17Fix -image argument parsing to not shadow "i" variableAlan Coopersmith1-3/+1
Also avoids starting at the wrong argument if -image is not the first flag passed to xcompmgr (though that's not really supported in the current syntax). Fixes gcc warning: xcursorgen.c: In function `main': xcursorgen.c:394: warning: declaration of 'i' shadows a previous local xcursorgen.c:377: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-28Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith1-6/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Remove old XFree86 CVS idAlan Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Strip trailing whitespaceAlan Coopersmith1-2/+2
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-15/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
This silences an Autoconf warning
2010-09-23xcursorgen 1.0.4xcursorgen-1.0.4Alan Coopersmith1-1/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-23config: Remove unnecessary calls from configure.acAlan Coopersmith1-5/+0
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-23config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-09Use AC_PROG_SED and MAN_SUBSTS in macros-1.8Yaakov Selkowitz2-13/+4
Tested-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2010-08-09Remove INSTALL from gitYaakov Selkowitz1-291/+0
The INSTALL file is added to the tarball by XORG_INSTALL. Tested-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2010-05-18Upgraded to work with libpng14Cody Maloney2-2/+2
setjmp(png_ptr->jmpbuf) is depreceated so removed it and changed the configure.ac version number to accept libpng12 or libpng14 Signed-off-by: Cody Maloney <cmaloney@theoreticalchaos.com> Tested-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-1/+2
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon4-54/+112
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon1-2/+1
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-11/+65
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-21Makefile.am: do not include autogen.sh in distribution #24183Gaetan Nadon1-1/+1
This is a private build script that should not be distributed
2009-10-16xcursorgen 1.0.3xcursorgen-1.0.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-16Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith2-12/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-01Add README with pointers to mailing lists, bugzilla, & gitAlan Coopersmith1-0/+25
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-01-19Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade4-6/+16
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
2007-08-20Version bump: 1.0.2xcursorgen-1.0.2Alan Coopersmith1-1/+1