sync
This commit is contained in:
parent
50c8bafd9f
commit
ac06c97e30
820 changed files with 467502 additions and 386453 deletions
|
@ -3,7 +3,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Tue Jul 12 10:32:42 2022 -0700
|
||||
|
||||
xmag 1.0.7
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit bcff9fb31f8b6944ed1e72cbdcc5dff14b321b4c
|
||||
|
@ -11,9 +11,9 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sun Apr 3 16:53:23 2022 -0700
|
||||
|
||||
Use _CONST_X_STRING to make libXt declare String as const char *
|
||||
|
||||
|
||||
Gets rid of 58 out of 73 -Wdiscarded-qualifiers warnings from gcc
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 58535e417d7db4443ae668166ef80e1c0a59f6a2
|
||||
|
@ -21,7 +21,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Tue Dec 7 12:22:12 2021 -0800
|
||||
|
||||
Build xz tarballs instead of bzip2
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit cfb726ab6b40f0118cecdbcf3741a98288070bb4
|
||||
|
@ -29,7 +29,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Tue Dec 7 12:22:08 2021 -0800
|
||||
|
||||
gitlab CI: add a basic build test
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 0bc642700eda11c5f13b9e96719b83c4fec31719
|
||||
|
@ -37,10 +37,10 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sun Nov 28 14:49:59 2021 -0800
|
||||
|
||||
Fix spelling/wording issues
|
||||
|
||||
|
||||
Found by using:
|
||||
codespell --builtin clear,rare,usage,informal,code,names
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit daa837ebdd55fa513a0ac6cc2fe77c745de7a205
|
||||
|
@ -48,7 +48,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Wed Nov 21 17:14:18 2018 -0800
|
||||
|
||||
Update configure.ac bug URL for gitlab migration
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 2e1d9ca62031e971337d9c493682a12857874b75
|
||||
|
@ -56,7 +56,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Fri Nov 16 22:35:58 2018 -0800
|
||||
|
||||
Update README for gitlab migration
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 6b5a723ac123b199274f033ed85db9ca1a682e6d
|
||||
|
@ -64,7 +64,7 @@ Author: Mihail Konev <k.mvc@ya.ru>
|
|||
Date: Thu Jan 26 14:00:21 2017 +1000
|
||||
|
||||
autogen: add default patch prefix
|
||||
|
||||
|
||||
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
||||
|
||||
commit e5b363bc241ed38e0495706efe09ef7756a8f4b1
|
||||
|
@ -72,10 +72,10 @@ Author: Emil Velikov <emil.l.velikov@gmail.com>
|
|||
Date: Mon Mar 9 12:00:52 2015 +0000
|
||||
|
||||
autogen.sh: use quoted string variables
|
||||
|
||||
|
||||
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>
|
||||
|
@ -85,9 +85,9 @@ Author: Peter Hutterer <peter.hutterer@who-t.net>
|
|||
Date: Tue Jan 24 10:32:07 2017 +1000
|
||||
|
||||
autogen.sh: use exec instead of waiting for configure to finish
|
||||
|
||||
|
||||
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>
|
||||
|
||||
|
@ -96,7 +96,7 @@ Author: Thomas Klausner <wiz@NetBSD.org>
|
|||
Date: Tue Jul 21 23:06:46 2015 +0200
|
||||
|
||||
Protect config.h with HAVE_CONFIG_H.
|
||||
|
||||
|
||||
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
|
||||
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
|
@ -105,7 +105,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Thu Apr 16 23:55:52 2015 -0700
|
||||
|
||||
xmag 1.0.6
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 975b6bcad6de9f57d46efc7bddb691a40703ae1e
|
||||
|
@ -113,7 +113,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Fri Jul 11 20:00:49 2014 -0700
|
||||
|
||||
Delete trailing whitespace from *.[ch] files
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit ec3e612fadfbdf60dc30bc8f155d5fb6a5fd501f
|
||||
|
@ -121,7 +121,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Fri Jul 11 19:58:18 2014 -0700
|
||||
|
||||
Convert sprintf to snprintf
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit b23149c5cda460d8ff932e891eb23df897d10dc0
|
||||
|
@ -129,7 +129,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Fri Jul 11 19:56:19 2014 -0700
|
||||
|
||||
Fix typos & wording issues in source comments
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 2be3155114bfcd0c0071a8c8f5973d499eba8736
|
||||
|
@ -137,9 +137,9 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat May 31 23:29:53 2014 -0700
|
||||
|
||||
autogen.sh: Honor NOCONFIGURE=1
|
||||
|
||||
|
||||
See http://people.gnome.org/~walters/docs/build-api.txt
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 47ea99fc84c3067eea428cadc0cd33941bd9b04c
|
||||
|
@ -147,7 +147,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat May 31 23:29:53 2014 -0700
|
||||
|
||||
configure: Drop AM_MAINTAINER_MODE
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit b40365c8650d58e9f0a3ba35cba20f7ece38cdd6
|
||||
|
@ -155,10 +155,10 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat May 31 23:29:38 2014 -0700
|
||||
|
||||
config: Add missing AC_CONFIG_SRCDIR
|
||||
|
||||
|
||||
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>
|
||||
|
||||
commit 8c4b91ea40088bc80de9cc2695f77a27ce78b0d9
|
||||
|
@ -166,7 +166,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat Jan 12 22:16:24 2013 -0800
|
||||
|
||||
xmag 1.0.5
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 50ed4f69a5f5e535128c5e2d1abc252b093dff06
|
||||
|
@ -174,14 +174,14 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Tue Dec 20 20:40:06 2011 -0800
|
||||
|
||||
Use lrint() from math library if available
|
||||
|
||||
|
||||
Moves -lm from being hardcoded in Makefile.am to being added via
|
||||
AC_SEARCH_LIBS in configure.ac setting it in $(LIBS)
|
||||
|
||||
|
||||
Using lrint() [returns long int] instead of rint() [returns double]
|
||||
clears a bunch of gcc warnings of the form:
|
||||
"cast from function call of type ‘double’ to non-matching type ‘short int’"
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Reviewed-by: James Cloos <cloos@jhcloos.com>
|
||||
|
||||
|
@ -190,7 +190,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Fri Feb 18 00:26:59 2011 -0800
|
||||
|
||||
Remove obsolete ISC support
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit e81168403132afe71b38e41cd368d0d9869bd320
|
||||
|
@ -198,10 +198,10 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Wed Jan 19 10:06:56 2011 -0500
|
||||
|
||||
config: move man pages into their own directory
|
||||
|
||||
|
||||
Use services provided by XORG_MANPAGE_SECTIONS.
|
||||
Use standard Makefile for man pages.
|
||||
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 857e73cfd8d79c8f81712fae8b4fa2d7e8565796
|
||||
|
@ -209,9 +209,9 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Thu Jan 13 11:15:47 2011 -0500
|
||||
|
||||
man: remove trailing spaces and tabs
|
||||
|
||||
|
||||
Using s/[ \t]*$//
|
||||
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 4c3bfeaa40aaf817bffcf7b4e4adaab45ec0ca13
|
||||
|
@ -219,7 +219,7 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Wed Jan 12 16:28:02 2011 -0500
|
||||
|
||||
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
|
||||
|
||||
|
||||
This silences an Autoconf warning
|
||||
|
||||
commit 4c741b8945c886ce1cfaaeb57c3ce726b77b6ae1
|
||||
|
@ -227,9 +227,9 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Wed Jan 12 15:29:50 2011 -0500
|
||||
|
||||
config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
|
||||
|
||||
|
||||
This silences an Automake warning.
|
||||
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 63cee7f38dc37fda89dc5aa689634bd8aeffabda
|
||||
|
@ -237,7 +237,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat Oct 30 17:22:41 2010 -0700
|
||||
|
||||
xmag 1.0.4
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit d41f3ae0b0e383ba2e622e3dd9999d3c09f90091
|
||||
|
@ -245,9 +245,9 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat Oct 30 17:20:18 2010 -0700
|
||||
|
||||
config: Remove unnecessary calls from configure.ac
|
||||
|
||||
|
||||
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 9475bf19a6544f522357f59bd1b04ec7685e3eb8
|
||||
|
@ -255,7 +255,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Sat Oct 30 17:19:07 2010 -0700
|
||||
|
||||
Purge CVS version tags
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit cc7172d187ad35a1b851961cc9c588e56c3894fa
|
||||
|
@ -263,13 +263,13 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Sat Oct 30 17:17:49 2010 -0700
|
||||
|
||||
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>
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
|
@ -278,7 +278,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Fri Aug 6 15:04:26 2010 -0700
|
||||
|
||||
Fill in COPYING file with copyright notices from source code
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit e9a1886d9e2a89995c2094b37000e12da4791cbf
|
||||
|
@ -286,7 +286,7 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Thu Jul 1 18:29:03 2010 -0700
|
||||
|
||||
Xmu functions are called directly, so include it in PKG_CHECK_MODULES
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit b7544beaad218b5799018fe1dca84815a14bbfa4
|
||||
|
@ -294,16 +294,16 @@ Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|||
Date: Wed Jun 30 23:25:03 2010 -0700
|
||||
|
||||
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
|
||||
The existing statement can now be removed from the configuration file.
|
||||
|
||||
|
||||
Use automake provided $(AM_V_GEN) and XORG_DEFAULT_OPTIONS provided $(SED)
|
||||
Enables silent rule and use platform appropriate version of sed.
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit f7ef4087a4bf87618e9b84ff7726f3f08fd018ca
|
||||
|
@ -311,10 +311,10 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Thu Feb 11 10:08:07 2010 -0500
|
||||
|
||||
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>
|
||||
|
||||
commit b20bf366aa045549221c6b0fb3aa7b7fda43b3a5
|
||||
|
@ -322,9 +322,9 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Sat Dec 19 20:48:48 2009 -0500
|
||||
|
||||
configure.ac: use backticks rather than $() for cmd subs
|
||||
|
||||
|
||||
Use "$PKG_CONFIG" rather than hard coded "pkg-config"
|
||||
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 3e597fcfe489f9eb9057b0b8a7fe3f75925b23d2
|
||||
|
@ -332,7 +332,7 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Thu Nov 26 09:19:54 2009 -0500
|
||||
|
||||
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
|
||||
|
||||
|
||||
Now that the INSTALL file is generated.
|
||||
Allows running make maintainer-clean.
|
||||
|
||||
|
@ -341,7 +341,7 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Wed Oct 28 14:09:08 2009 -0400
|
||||
|
||||
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.
|
||||
|
@ -352,7 +352,7 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Tue Oct 27 15:07:25 2009 -0400
|
||||
|
||||
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.
|
||||
|
@ -362,7 +362,7 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Mon Oct 26 22:08:39 2009 -0400
|
||||
|
||||
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
|
||||
|
||||
|
||||
ChangeLog filename is known to Automake and requires no further
|
||||
coding in the makefile.
|
||||
|
||||
|
@ -371,7 +371,7 @@ Author: Gaetan Nadon <memsize@videotron.ca>
|
|||
Date: Thu Oct 22 12:34:15 2009 -0400
|
||||
|
||||
.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.
|
||||
|
@ -381,7 +381,7 @@ Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
|||
Date: Thu Oct 1 14:54:26 2009 -0700
|
||||
|
||||
Add README with pointers to mailing lists, bugzilla, & git
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit f1f2af7a65d6531814a06b292a28bdc46580e590
|
||||
|
@ -389,7 +389,7 @@ Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
|||
Date: Mon Aug 3 11:19:07 2009 -0700
|
||||
|
||||
Version bump: 1.0.3
|
||||
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit 90ccae7efc5fca9c0f4e45b84806df01332dd869
|
||||
|
@ -415,10 +415,10 @@ Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
|
|||
Date: Tue Jul 29 14:18:10 2008 -0300
|
||||
|
||||
Properly handle multiple depth windows.
|
||||
|
||||
|
||||
This patch will not cause X Errors when magnifying windows with portions
|
||||
offscreen, or windows with a dimension smaller than the default 64x64.
|
||||
|
||||
|
||||
A common case where this patch is required is when Composite is enabled,
|
||||
the default depth has a value other than 24, and some application is
|
||||
using the Composite argb visual; example is WindowMaker, that will choose
|
||||
|
@ -441,7 +441,7 @@ Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
|||
Date: Wed Aug 15 17:59:30 2007 -0700
|
||||
|
||||
Change xmag_CFLAGS to AM_CFLAGS to make automake-1.10 happier
|
||||
|
||||
|
||||
Makefile.am:27: compiling `CutPaste.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
|
||||
|
||||
commit d990122dafcde5d22c8f1aa40e8f9dc213f79e17
|
||||
|
@ -455,9 +455,9 @@ Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
|||
Date: Tue Dec 13 00:00:00 2005 -0800
|
||||
|
||||
Sun bug 6359959: xmag overconsumes CPU due to its selection box
|
||||
|
||||
|
||||
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6359959>
|
||||
|
||||
|
||||
The fix for Sun bug 1166559 changed the HLINTERVAL from 10 to 0.5 to fix
|
||||
a problem that the selection box wasn't being seen. The problem is that
|
||||
this parameter is used in an XtAppAddTimeOut(), and is supposed to be an
|
||||
|
@ -470,14 +470,14 @@ Author: Derek Wang <derek.wang@sun.com>
|
|||
Date: Mon May 8 00:00:00 2000 -0700
|
||||
|
||||
Sun bug 1166559: highlight of selection box not discernable on some configs
|
||||
|
||||
|
||||
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=1166559>
|
||||
|
||||
|
||||
1) On devices whose default visual is 24-bit TrueColor the selection area
|
||||
bounding box has no contrast with the background. This is because a
|
||||
value of 1 is being xor'd in. This won't provide enough contrast. A
|
||||
value of 0xffffff would be better.
|
||||
|
||||
|
||||
2) On my machine (which is a dual 50-Mhz SS10) you can sort of see the
|
||||
bounding box on my GX if you look really, really close, but it's a faint
|
||||
flicker. I believe what is happening is that the bounding box is being
|
||||
|
@ -494,7 +494,7 @@ Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
|||
Date: Sat May 19 00:06:28 2007 -0700
|
||||
|
||||
X.Org Bug #10616: xmag man page says "Cut" button instead of "Select"
|
||||
|
||||
|
||||
X.Org Bugzilla #10616: <https://bugs.freedesktop.org/show_bug.cgi?id=10616>
|
||||
Reported upstream from
|
||||
Debian bug #180712 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=180712>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
#
|
||||
# Copyright 2005 Red Hat, Inc.
|
||||
#
|
||||
#
|
||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||
# documentation for any purpose is hereby granted without fee, provided that
|
||||
# the above copyright notice appear in all copies and that both that
|
||||
|
@ -10,7 +10,7 @@
|
|||
# specific, written prior permission. Red Hat makes no
|
||||
# representations about the suitability of this software for any purpose. It
|
||||
# is provided "as is" without express or implied warranty.
|
||||
#
|
||||
#
|
||||
# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||
# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
|
|
|
@ -196,7 +196,7 @@ ScaleClassRec scaleClassRec = {
|
|||
|
||||
WidgetClass scaleWidgetClass = (WidgetClass) &scaleClassRec;
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Private Procedures
|
||||
|
@ -208,7 +208,7 @@ ClassInitialize(void)
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
GetGC(ScaleWidget sw)
|
||||
|
@ -226,7 +226,7 @@ GetGC(ScaleWidget sw)
|
|||
&values);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
|
@ -244,7 +244,7 @@ GetInitialScaleValues(ScaleWidget sw)
|
|||
sw->scale.scale_x = sw->scale.scale_y = 1.0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
GetRectangleBuffer(ScaleWidget sw, Cardinal buffer_size)
|
||||
|
@ -264,7 +264,7 @@ GetRectangleBuffer(ScaleWidget sw, Cardinal buffer_size)
|
|||
sw->scale.buffer_size = buffer_size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
|
@ -335,7 +335,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
BuildTable(ScaleWidget sw)
|
||||
|
@ -372,7 +372,7 @@ BuildTable(ScaleWidget sw)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
FlushRectangles(ScaleWidget sw, Drawable drawable, GC gc)
|
||||
|
@ -383,7 +383,7 @@ FlushRectangles(ScaleWidget sw, Drawable drawable, GC gc)
|
|||
sw->scale.nrectangles = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
FillRectangle(ScaleWidget sw, Drawable drawable, GC gc,
|
||||
|
@ -401,7 +401,7 @@ FillRectangle(ScaleWidget sw, Drawable drawable, GC gc,
|
|||
++sw->scale.nrectangles;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
ScaleImage(ScaleWidget sw, Drawable drawable, Position img_x, Position img_y,
|
||||
|
@ -488,7 +488,7 @@ ScaleImage(ScaleWidget sw, Drawable drawable, Position img_x, Position img_y,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static int
|
||||
FindPixel(ScaleWidget sw, Position x, Position y,
|
||||
|
@ -524,7 +524,7 @@ FindPixel(ScaleWidget sw, Position x, Position y,
|
|||
return (0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
int
|
||||
SWGetImagePixel(Widget w, Position x, Position y,
|
||||
|
@ -541,7 +541,7 @@ SWGetImagePixel(Widget w, Position x, Position y,
|
|||
return FindPixel(sw, x, y, img_x, img_y, img_pixel);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
|
@ -594,7 +594,7 @@ Redisplay(Widget w, XEvent *event, Region region)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
TryResize(ScaleWidget sw)
|
||||
|
@ -619,7 +619,7 @@ TryResize(ScaleWidget sw)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Precision(ScaleWidget sw)
|
||||
|
@ -633,7 +633,7 @@ Precision(ScaleWidget sw)
|
|||
* sw->scale.precision;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Proportional(ScaleWidget sw)
|
||||
|
@ -670,7 +670,7 @@ Proportional(ScaleWidget sw)
|
|||
XtWarning("can not preserve aspect ratio");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
GetScaledSize(ScaleWidget sw)
|
||||
|
@ -681,7 +681,7 @@ GetScaledSize(ScaleWidget sw)
|
|||
max(myrint(sw->scale.scale_y * sw->scale.image->height), 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
GetScaleValues(ScaleWidget sw)
|
||||
|
@ -699,7 +699,7 @@ GetScaleValues(ScaleWidget sw)
|
|||
/ (float) sw->scale.image->height;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Unscale(ScaleWidget sw)
|
||||
|
@ -711,7 +711,7 @@ Unscale(ScaleWidget sw)
|
|||
BuildTable(sw);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Autoscale(ScaleWidget sw)
|
||||
|
@ -727,7 +727,7 @@ Autoscale(ScaleWidget sw)
|
|||
BuildTable(sw);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
PositionImage(ScaleWidget sw)
|
||||
|
@ -752,7 +752,7 @@ PositionImage(ScaleWidget sw)
|
|||
*****/
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Resize(Widget w)
|
||||
|
@ -764,7 +764,7 @@ Resize(Widget w)
|
|||
PositionImage(sw);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Realize(Widget wid, Mask *vmask, XSetWindowAttributes *attr)
|
||||
|
@ -774,7 +774,7 @@ Realize(Widget wid, Mask *vmask, XSetWindowAttributes *attr)
|
|||
(Visual *) sw->scale.visual, *vmask, attr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
Destroy(Widget w)
|
||||
|
@ -793,7 +793,7 @@ Destroy(Widget w)
|
|||
XDestroyImage(sw->scale.image);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* ARGSUSED */
|
||||
static Boolean
|
||||
|
@ -938,7 +938,7 @@ SetValues(Widget current, Widget request, Widget new,
|
|||
return(redisplay);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
SWUnscale(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
|
@ -950,7 +950,7 @@ SWUnscale(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
XClearArea(XtDisplay(w), XtWindow(w), 0, 0, 0, 0, True);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
SWAutoscale(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
|
@ -962,7 +962,7 @@ SWAutoscale(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
XClearArea(XtDisplay(w), XtWindow(w), 0, 0, 0, 0, True);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
SWInitialSize(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
|
@ -981,7 +981,7 @@ SWInitialSize(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
XClearArea(XtDisplay(w), XtWindow(w), 0, 0, 0, 0, True);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
SWSetImage(Widget w, XImage *image)
|
||||
|
@ -994,7 +994,7 @@ SWSetImage(Widget w, XImage *image)
|
|||
XtSetValues(w, wargs, n);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
|
@ -1003,7 +1003,7 @@ RequestSelection(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
SWRequestSelection(w, event->xbutton.time);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
GrabSelection(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
|
@ -1011,7 +1011,7 @@ GrabSelection(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
SWGrabSelection(w, event->xbutton.time);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Pixmap
|
||||
SWGetPixmap(Widget w)
|
||||
|
|
|
@ -7,9 +7,9 @@ Class Name Scale
|
|||
Superclass Simple
|
||||
|
||||
The Scale widget is an immutable image displayed within a rectangular
|
||||
region of the screen. When the widget is selected, it is highlighted,
|
||||
region of the screen. When the widget is selected, it is highlighted,
|
||||
and an application callback routine is invoked. When the
|
||||
widget is resized the image can be autoscaled to fit new size of the
|
||||
widget is resized the image can be autoscaled to fit new size of the
|
||||
widget window. The widget can also cut and paste its contents.
|
||||
|
||||
When creating a Scale widget instance, the following resources are
|
||||
|
@ -38,8 +38,8 @@ All the Simple Widget resources plus...
|
|||
|
||||
aspectRatio This resource specifies the aspect ratio of the scaled image
|
||||
in the x / y * aspectRatio = 1 form. It is effective within
|
||||
the precision resource only if proportional resource is set
|
||||
to true. AspectRatio resource can be any positive number
|
||||
the precision resource only if proportional resource is set
|
||||
to true. AspectRatio resource can be any positive number
|
||||
greater than zero.
|
||||
|
||||
autoscale If this resource is set to True then the image will be
|
||||
|
@ -49,7 +49,7 @@ All the Simple Widget resources plus...
|
|||
according to the gravity resource value.
|
||||
|
||||
bufferSize This resource specifies the buffer size in XRectangle's for
|
||||
buffering the XFillRectangle calls. It is effective only
|
||||
buffering the XFillRectangle calls. It is effective only
|
||||
for XYBitmap image type.
|
||||
|
||||
background This resource has the same meaning as for the Simple widget.
|
||||
|
@ -61,36 +61,36 @@ All the Simple Widget resources plus...
|
|||
If the image is XYPixmap or ZPixmap format, the foreground
|
||||
resource has no effect.
|
||||
|
||||
gravity This resource will determine where to put the image if it does
|
||||
gravity This resource will determine where to put the image if it does
|
||||
not fit the window size minus internal width and height.
|
||||
The widget will try to preserve gravity rather than internal
|
||||
width and height resources.
|
||||
|
||||
image This is the image to be displayed in the widget window.
|
||||
If no image is desired, the NULL value can be passed.
|
||||
If no image is desired, the NULL value can be passed.
|
||||
The passed image is copied and set to the resource value.
|
||||
Applications should destroy the passed image argument
|
||||
if they do not intend to use it at some later time.
|
||||
|
||||
internalHeight
|
||||
internalWidth These resources specify the minimum distance from the boarder
|
||||
of the widget window to be maintanied when manipulating the
|
||||
image. If image is too big or small to satisfy given
|
||||
conditions, the widget will position the image to preserve
|
||||
internalHeight
|
||||
internalWidth These resources specify the minimum distance from the boarder
|
||||
of the widget window to be maintanied when manipulating the
|
||||
image. If image is too big or small to satisfy given
|
||||
conditions, the widget will position the image to preserve
|
||||
gravity rather than internalWidth or internalHeight.
|
||||
|
||||
pasteBuffer If this resource is true then the widget owns the paste
|
||||
selection buffer. This resource can only be queried.
|
||||
|
||||
precision This resource specifies the precision of the scale factors
|
||||
when scaling the image. The precision resource can be any
|
||||
when scaling the image. The precision resource can be any
|
||||
positive number greater than zero. (For example, if precision
|
||||
is 1.0 then the image will be scaled only by integer values.)
|
||||
|
||||
proportional If this resource is set to true it will make sure that the
|
||||
proportional If this resource is set to true it will make sure that the
|
||||
image proportions, as specified by aspectRatio resource,
|
||||
are being kept whenever it is scaled.
|
||||
|
||||
are being kept whenever it is scaled.
|
||||
|
||||
resize If this resource is true the widget will try to resize when
|
||||
addopting a new image thus preserveing the scale values.
|
||||
If it is false the scale values will not be preserved unless
|
||||
|
|
1783
app/xmag/config.guess
vendored
1783
app/xmag/config.guess
vendored
File diff suppressed because it is too large
Load diff
2954
app/xmag/config.sub
vendored
2954
app/xmag/config.sub
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
|||
|
||||
dnl Copyright 2005 Red Hat, Inc.
|
||||
dnl
|
||||
dnl
|
||||
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
||||
dnl documentation for any purpose is hereby granted without fee, provided that
|
||||
dnl the above copyright notice appear in all copies and that both that
|
||||
|
@ -10,7 +10,7 @@ dnl advertising or publicity pertaining to distribution of the software without
|
|||
dnl specific, written prior permission. Red Hat makes no
|
||||
dnl representations about the suitability of this software for any purpose. It
|
||||
dnl is provided "as is" without express or implied warranty.
|
||||
dnl
|
||||
dnl
|
||||
dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||
dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
|
|
|
@ -56,7 +56,7 @@ from The Open Group.
|
|||
#define max(a, b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
/* highlight interval (in milliseconds) */
|
||||
#define HLINTERVAL 100
|
||||
|
@ -101,7 +101,7 @@ typedef struct {
|
|||
Widget scaleShell, scaleInstance, pixShell, pixLabel, cmapWinList [2];
|
||||
} hlStruct, *hlPtr;
|
||||
|
||||
|
||||
|
||||
|
||||
/* global variables */
|
||||
static XtAppContext app;
|
||||
|
@ -179,7 +179,7 @@ static XrmOptionDescRec optionDesc[] = {
|
|||
{"-title", "*title", XrmoptionSepArg, (XtPointer)NULL},
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/* action table */
|
||||
|
||||
|
@ -195,7 +195,7 @@ static XtActionsRec actions_table[] = {
|
|||
{"select-region", SelectRegionAP}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Error() -- Error handler: Catch a bad match in magnifying an
|
||||
|
@ -228,7 +228,7 @@ CloseAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
XtDestroyWidget(w);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* SetCmapPropsAP() -- Put the scale widget first in WM_COLORMAP_WINDOWS
|
||||
|
@ -248,7 +248,7 @@ SetCmapPropsAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* UnsetCmapPropsAP() -- Put the shell first in WM_COLORMAP_WINDOWS
|
||||
|
@ -268,7 +268,7 @@ UnsetCmapPropsAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* NewAP() -- Create an additional xmag dialog. THIS IS A COPY OF NewEH
|
||||
|
@ -280,7 +280,7 @@ NewAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
StartRootPtrGrab(True, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ReplaceAP() -- Replace this particular xmag dialog.
|
||||
|
@ -295,7 +295,7 @@ ReplaceAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
StartRootPtrGrab(False, data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* PopupPixelAP() -- Show pixel information.
|
||||
|
@ -343,7 +343,7 @@ PopupPixelAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
UpdatePixelAP(w, event, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* UpdatePixelAP() -- Update pixel information.
|
||||
|
@ -379,7 +379,7 @@ UpdatePixelAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* PopdownPixelAP() -- Remove pixel info.
|
||||
|
@ -399,7 +399,7 @@ PopdownPixelAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
XtPopdown(data->pixShell);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void /* ARGSUSED */
|
||||
SelectRegionAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
|
@ -419,7 +419,7 @@ SelectRegionAP(Widget w, XEvent *event, String *params, Cardinal *num_params)
|
|||
******/
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* CheckPoints() -- Change the cursor for the correct quadrant.
|
||||
|
@ -445,7 +445,7 @@ CheckPoints(Position *x1, Position *x2, Position *y1, Position *y2)
|
|||
if (*y2 < *y1) { tmp = *y1; *y1 = *y2; *y2 = tmp; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* HighlightTO() -- Timer to highlight the selection box
|
||||
|
@ -481,7 +481,7 @@ HighlightTO(XtPointer closure, XtIntervalId *id) /* ARGSUSED */
|
|||
XtAppAddTimeOut(app, HLINTERVAL, HighlightTO, (XtPointer)data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* CloseCB() -- Delete this xmag dialog. If its the only one on the screen
|
||||
|
@ -496,7 +496,7 @@ CloseCB(Widget w, XtPointer clientData, XtPointer callData)
|
|||
XtDestroyWidget(shell);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ReplaceCB() -- Replace this particular xmag dialog.
|
||||
|
@ -508,7 +508,7 @@ ReplaceCB(Widget w, XtPointer clientData, XtPointer callData)
|
|||
StartRootPtrGrab(False, data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* NewCB() -- Create an additional xmag dialog.
|
||||
|
@ -519,7 +519,7 @@ NewCB(Widget w, XtPointer clientData, XtPointer callData)
|
|||
StartRootPtrGrab(True, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* SelectCB() -- Own the primary selection.
|
||||
|
@ -531,7 +531,7 @@ SelectCB(Widget w, XtPointer clientData, XtPointer callData)
|
|||
SWGrabSelection(data->scaleInstance, XtLastTimestampProcessed(dpy));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* PasteCB() -- Paste from the primary selection into xmag.
|
||||
|
@ -543,7 +543,7 @@ PasteCB(Widget w, XtPointer clientData, XtPointer callData)
|
|||
SWRequestSelection(data->scaleInstance, XtLastTimestampProcessed(dpy));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* SetupGC() -- Graphics context for magnification selection.
|
||||
|
@ -558,7 +558,7 @@ SetupGC(void)
|
|||
&selectGCV);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* FindWindow() -- Determine window the pointer is over.
|
||||
|
@ -589,7 +589,7 @@ FindWindow(int x, int y) /* Location of cursor */
|
|||
return findW;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ResizeEH() -- Event Handler for resize of selection box.
|
||||
|
@ -628,7 +628,7 @@ ResizeEH(Widget w, XtPointer closure, XEvent *event,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* DragEH() -- Event Handler for dragging selection box.
|
||||
|
@ -689,7 +689,7 @@ DragEH(Widget w, XtPointer closure, XEvent *event,
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* StartRootPtrGrab() -- Bring up the selection box.
|
||||
|
@ -727,7 +727,7 @@ StartRootPtrGrab(int new, /* do we create a new scale instance? */
|
|||
(void) XtAppAddTimeOut(app, HLINTERVAL, HighlightTO, (XtPointer)hlData);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* CreateRoot() -- Create a root window widget. If the user specified x and y
|
||||
|
@ -837,7 +837,7 @@ GetImageAndAttributes(Window w, int x, int y, int width, int height,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Get_XColors() Get the XColors of all pixels in image - returns # of colors
|
||||
|
@ -889,7 +889,7 @@ Get_XColors(XWindowAttributes *win_info, XColor **colors)
|
|||
return(ncolors);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#define Intensity(cptr) (3.0*cptr->red+0.59*cptr->green+0.11*cptr->blue)
|
||||
|
||||
|
@ -943,7 +943,7 @@ GetMinIntensity(hlPtr data)
|
|||
return BlackPixel(dpy, scr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static Widget pane1, pane2, pane3, cclose, replace, new, select_w, paste;
|
||||
|
@ -1027,7 +1027,7 @@ PopupNewScale(hlPtr data)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* RedoOldScale() -- If the visual, depth, or colormap has changed, unrealize
|
||||
|
@ -1071,7 +1071,7 @@ RedoOldScale(hlPtr data)
|
|||
XtManageChild(data->scaleInstance);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* InitCursors() -- Create our cursors for area selection.
|
||||
|
@ -1085,7 +1085,7 @@ InitCursors(void)
|
|||
llAngle = XCreateFontCursor(dpy, XC_ll_angle);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ParseSourceGeom() -- Determine dimensions of area to magnify from resources.
|
||||
|
@ -1103,7 +1103,7 @@ ParseSourceGeom(void)
|
|||
/* mag */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Main program.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue