Commit graph

191 commits

Author SHA1 Message Date
Alan Coopersmith
4ce23fcd97 Mark bitmasks as unsigned ints
Clears Sun compiler warnings from shifting 8 bits by 24 bits:
"cursor.c", line 215: warning: integer overflow detected: op "<<"
"cursor.c", line 280: warning: integer overflow detected: op "<<"

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-22 12:55:31 -07:00
Jeremy Huddleston
047993c76a Correct error handling in _XcursorAverageColor
Previously it would either div-zero or get stuck in a loop until int overflow
if called with a bad value.

cursor.c:214:32: warning: Division by zero
    return (0xff << 24) | ((red/npixels) << 16) | ((green/npixels) << 8) | (blue/npixels);

Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-07 10:16:18 -07:00
Chris Wilson
bee68e54e5 Free the FontInfo structure after loading the cursor from it.
References: https://bugs.freedesktop.org/show_bug.cgi?id=2731
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-04-01 12:16:56 +01:00
Chris Wilson
f49e7e1608 Free the partial header after failing to open the cursor.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-04-01 12:16:56 +01:00
Chris Wilson
073eb2c56f Free list on shutdown.
We freed the parent structure without freeing the list contained within,
making valgrind unhappy.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-04-01 12:16:56 +01:00
Gaetan Nadon
de50317ec4 config: perform XCURSORPATH formatting in man/Makefile.am
We can skip the extra step of using XCURSORPATH_LIST in configure.ac.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-02-02 17:08:19 -05:00
Gaetan Nadon
a929c3621b config: comment, minor upgrade, quote and layout configure.ac
Group statements per section as per Autoconf standard layout
Quote statements where appropriate.
Autoconf recommends not using dnl instead of # for comments

Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters.

This helps automated maintenance and release activities.
Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-02-02 16:36:54 -05:00
Gaetan Nadon
96c5877fd7 config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-28 19:41:37 -05:00
Gaetan Nadon
4f7a749fcb config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
This silences an Automake warning.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-28 16:07:07 -05:00
Gaetan Nadon
c38adc6bf1 config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-27 18:50:14 -05:00
Alan Coopersmith
731e84d79e libXcursor 1.1.11
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-27 22:48:19 -07:00
Gaetan Nadon
42b7717c32 man: whitespace management
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-16 19:28:57 -04:00
Gaetan Nadon
862bc06d58 man: reorder makefile statements
No functional change. Shadows are part of libman_PRE.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-16 19:25:25 -04:00
Gaetan Nadon
b18568dd5b man: store shadow man pages in git rather than generating them
Simplify the build process and the makefile.

Local fix in CVS for bug 5628 is not required
as the problem has been fixed in
util-macros d9062e4077ebfd0985baf8418f3d0f111b9ddbba

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-16 19:23:57 -04:00
Gaetan Nadon
68d830bcf6 config: upgrade to util-macros 1.8 for additional man page support
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
The value of MAN_SUBST is the same for all X.Org packages.

Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-16 19:05:35 -04:00
Gaetan Nadon
0caadca51c config: update AC_PREREQ statement to 2.60
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-03-29 16:50:33 -04:00
Gaetan Nadon
b511b260dd config: remove the pkgconfig pc.in file from EXTRA_DIST
Automake always includes it in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-29 14:53:48 -04:00
Gaetan Nadon
a3e03bb23b config: move CWARNFLAGS from configure.ac to Makefile.am
Compiler warning flags should be explicitly set in the makefile
rather than being merged with other packages compiler flags.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-16 10:37:21 -05:00
Gaetan Nadon
8198d14909 Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-27 20:56:04 -05:00
Gaetan Nadon
ecddb70049 INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
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-28 14:09:10 -04:00
Gaetan Nadon
02cd3d7a61 Deploy the new XORG_DEFAULT_OPTIONS #24242
This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.
2009-10-27 15:07:25 -04:00
Gaetan Nadon
1ca6aefa66 Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
ChangeLog filename is known to Automake and requires no further
coding in the makefile.
2009-10-26 22:08:42 -04:00
Gaetan Nadon
1c158db62a .gitignore: use common defaults with custom section # 24239
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-22 12:34:19 -04:00
Jeremy Huddleston
5e14cd9bd8 This is not a GNU project, so declare it foreign.
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote:
> On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote:
> > I noticed an INSTALL file in xlsclients and libXvMC today, and it
> > was quite annoying to work around since 'autoreconf -fvi' replaces
> > it and git wants to commit it.  Should these files even be in git?
> > Can I nuke them for the betterment of humanity and since they get
> > created by autoreconf anyways?
>
> See https://bugs.freedesktop.org/show_bug.cgi?id=24206

As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with
AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation
of the INSTALL file. It is also part of the 24206 solution.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-10-21 12:47:24 -07:00
Peter Hutterer
fbf2298793 libXcursor 1.1.10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-28 14:49:15 +10:00
Alan Coopersmith
59e3f6520f Add README with pointers to mailing list, bugzilla & git repos
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-02-02 20:34:32 -08:00
Paulo Cesar Pereira de Andrade
f00ae32322 Janitor: make distcheck, compiler warnings, extra .gitignore files. 2009-01-29 15:34:11 -02:00
Matthieu Herrb
04641d3cc3 nuke RCS Ids 2008-03-09 00:34:36 +01:00
James Cloos
94531dc8f6 Replace static ChangeLog with dist-hook to generate from git log 2007-12-06 16:38:25 -05:00
Alan Coopersmith
a4f29e6dee Version bump: 1.1.9 2007-08-24 14:01:07 -07:00
Alan Coopersmith
5a2601740d Make shadow man pages for each function 2007-08-22 19:40:55 -07:00
Alan Coopersmith
fef474da69 Add XCURSOR_PATH to man page 2007-08-21 19:45:35 -07:00
Alan Coopersmith
a9ccf1bd91 Use cursorpath found by configure in man page 2007-08-21 19:33:00 -07:00
Tilman Sauerbeck
110131bd40 Added object files to .gitignore. 2007-05-12 22:42:08 +02:00
Tilman Sauerbeck
3c5d4f591c Store the cursor names in one large string.
This means the compiler doesn't need to place the array in the
read-write sections of the DSO, which means less relocations
when the library is loaded and a smaller memory footprint.
2007-05-12 22:41:27 +02:00
Adam Jackson
8b73dc0411 Bump to 1.1.8 2006-10-13 16:01:17 -04:00
Alan Coopersmith
9df9640643 Fix many sparse warnings: Using plain integer as NULL pointer 2006-10-10 14:57:16 -07:00
Alan Coopersmith
b6b9f58855 Fix lint warning: deallocating a pointer that could be NULL: library.c(266) 2006-10-10 13:46:17 -07:00
Alan Coopersmith
d0e12a9784 Add XORG_WITH_LINT to allow checking code with lint/sparse/etc. 2006-10-10 13:33:33 -07:00
Alan Coopersmith
932965298c Use $prefix & $ICONDIR settings from configure for default path in manpage
(Stop hardcoding /usr/X11R6 & /usr/share in the paths shown.)
2006-10-06 16:44:37 -07:00
Alan Coopersmith
f591196271 Xcursor.man formatting cleanups 2006-10-06 16:22:52 -07:00
Bart Massey
3c5f5860d6 Added missing dependency 2006-09-12 09:02:54 -07:00
Alan Coopersmith
c7d048dacf Use version number from configure.ac in Xcursor.man instead of "Version 1.0" 2006-08-24 19:21:47 -07:00
Alan Coopersmith
8c73ee7260 Add *~ to .gitignore to skip over emacs droppings 2006-08-24 18:42:36 -07:00
Alan Coopersmith
c7886900f1 Man page typo fixes (pimaps, directorys) 2006-08-24 18:42:03 -07:00
Chris Wilson
e0a501e91c fix leak in header destruction
Fix a couple of if (!foo) free(foo); tests.
2006-08-12 19:55:44 +03:00
Alan Coopersmith
2f08984396 renamed: .cvsignore -> .gitignore 2006-07-13 14:58:50 -07:00
Daniel Stone
c6f65af419 Bug #5268: Fix small memory leak. (Matthias Clasen). Change some return 0s
to NULL. Bump to 1.1.7.
2006-06-03 10:23:57 +00:00
Eric Anholt
8adc6fe181 Look for cursors in datadir, not always /usr/share. 2006-04-27 17:26:28 +00:00
Adam Jackson
3c69a6ef12 Bump to 1.1.6 2006-04-27 00:04:48 +00:00