pax_global_header 0000666 0000000 0000000 00000000064 14713254463 0014523 g ustar 00root root 0000000 0000000 52 comment=f37cf09c02b0ebd81d29c67be9741f54d76a9171
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/ 0000775 0000000 0000000 00000000000 14713254463 0020153 5 ustar 00root root 0000000 0000000 mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/COPYING 0000664 0000000 0000000 00000104513 14713254463 0021212 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/Makefile 0000664 0000000 0000000 00000000437 14713254463 0021617 0 ustar 00root root 0000000 0000000 include _conf.txt
all: $(subdirs)
.PHONY: $(subdirs)
$(subdirs):
$(MAKE) -C $@
install:
for dir in $(subdirs); do $(MAKE) -C $$dir install; done
uninstall:
for dir in $(subdirs); do $(MAKE) -C $$dir uninstall; done
clean:
for dir in $(subdirs); do $(MAKE) -C $$dir clean; done
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/NEWS 0000664 0000000 0000000 00000150525 14713254463 0020662 0 ustar 00root root 0000000 0000000 ------------
mtPaint NEWS
------------
Here is a summary of the main changes in this release (see handbook for full details):
3.51 2024-??-??
* Kabyle translation added by Yacine Bouklif
* Czech translation updated by Pavel Fric
* Slovak translation updated by Jozef Riha
* Spanish translation updated by Adolfo Jayme
* Tagalog translation updated by Anjelo delCarmen
* Environment variable MTPAINT_INIT to hold a script to be run at initializing the GUI
* Environment variable MTPAINT_INI to use a nondefault user settings file
* Animated WebP files now can be loaded into layers, or exploded into frames
* Animated PNG (APNG) files now can be loaded into layers, or exploded into frames
* GIF file format support now is builtin (does not use giflib anymore)
* GIF loader made yet more tolerant to malformed GIF files
* ICC colour profiles embedded in GIF and WebP images now can be applied on load
* BMP loader made more tolerant to malformed BMP files
* Better support for OS/2 BMP varieties
* SVGZ (compressed SVG) files now can be imported
* Counting used colours and exact conversion to indexed now are 9-19 times faster
* Multithreaded decompression enabled for OpenJPEG 2.2+ in Windows version too
* Support for multithreaded compression in OpenJPEG 2.4+ added
* Support for compiling with libtiff 3 restored
* Support for compiling with gcc builds (mis)configured with --with-gcc-major-version-only added
* Support for compiling with FreeType 2.8 and GTK+1 added
* Configure script now works with gcc-14 or clang-16
* Workaround for bug in glibc versions 2.15 - 2.16 added (crashed when comparing empty strings)
* BUGFIX - RGB clipboard when used in Map effect now is padded with black if too small, as it should
* BUGFIX - Gradient editor now displays correct overlay colours for utility channels again
* BUGFIX - Saved GIF files are now properly labeled GIF89 if transparent and GIF87 if not
* BUGFIX - GIF files without any image blocks now properly fail to load (instead of producing a 0x0 image)
* BUGFIX - Composited GIF animation frames that use more than 256 colours now do not come out with wrong colours in certain cases
* BUGFIX - Composited GIF animation frames now do not come out wrong in certain cases (after restore to previous that follows restore to background)
* BUGFIX - Exploding, or loading into layers, GIF animation files with screen size and/or frame position outside canvas size limit no longer causes crash
* BUGFIX - When first frame of GIF animation is loaded, ".000" is added to the filename, as it should be
* BUGFIX - Animation frames and the layers file from loading an image now are ensured not to clash with it or each other when exceeding the path length limit
* BUGFIX - When loading animation, raw/composited/nonzero-delay selection now works correctly again
* BUGFIX - Loading certain broken BMP files no longer causes crash
* BUGFIX - Ctrl+N and Ctrl+P keys now work, or do nothing, properly when focus is on a list in GTK+2/3 mode
* BUGFIX - Horizontal separators in GTK+ 3.20 and later no longer are drawn as wide bars
* BUGFIX - Problem with some scrollable areas in GTK+ 3.22 and later being smaller than they should be is now eliminated
* BUGFIX - Response and redraw lag in GTK+3 when moving a large clipboard are now greatly reduced
* BUGFIX - Closing pan window with a keypress while moving the panning frame with the mouse now cannot cause crash
3.50 2020-12-31
* Dutch translation updated by Pjotr
* French translation updated by Victor Copovi
* German translation updated by Simon Brixel
* Russian translation updated
* GTK+3 support - "./configure gtk3"
* Scripting added - "Image->Script" to enter or run a script : See handbook chapter 10 for details
* Commandline mode added - use "mtpaint --cmd" to run a script without GUI
* Keyboard shortcuts can now be reconfigured - "Help->Keyboard shortcuts"
* New keyboard shortcut Ctrl+H added for Channels->Hide image
* Keyboard shortcuts now can be assigned for choosing previous/next pattern, and larger/smaller brush size
* Optional gamma correction for painting and masking (Preferences->General->Use gamma correction when painting)
* Rendering now uses multiple threads to utilize all available CPU cores
* Text tools now allow selection of DPI value, letter-spacing, and alignment for multiline text
* Distance function for shapeburst gradients is now selectable : "Distance type"
* Composite images now can have alpha transparency, when background is non-opaque
* Background layer now can use transparency like any other layer
* Background layer position now can be changed via Ctrl+arrows or layers window spinbuttons, like any other layer
* Patterns for colours A and B can now be chosen separately (Preferences->General->Separate patterns for A&B)
* Builtin Bayer patterns now can be redefined : See handbook section A.6.1 for details
* Threshold effect with interactive preview added (see handbook section 6.6.7)
* Normalize effect added
* Map effect added: map image's value/red/green/blue to gradient/palette/clipboard
* Solid Noise effect with interactive preview added (Perlin noise generation)
* Colour transform and source selection added to blend mode options
* Threshold blend mode added
* "Saturate more" blend mode redefined to not ignore source (previous behaviour available with "Image" source selected)
* Horizontal and vertical ramps now respect drawing modes, opacity and masking
* Lasso tool can be configured to shrink selection based on the selection channel - right click the tool icon
* Clone tool is now continuous
* Clone tool can be configured to work in unaligned mode - right click the tool icon
* Ctrl+Left click now positions clone source when using clone tool
* Ctrl+Right click now deletes last point when making polygonal selection (from a closed polygon, deletes the point nearest to cursor)
* Shift and Shift+Ctrl now constrain selection box width/height when resizing it by clicking and dragging
* Arrow keys can now be used for scrolling (Preferences->Interface->Arrow keys scroll canvas)
* Zooming now can use mouse cursor position as its fixed point (Preferences->Interface->Zoom on cursor position)
* Scroll wheel zoom now works for view window too
* Zoom is now up to 8000%
* "Hide image" and "View alpha as an overlay" can now be toggled separately for each layer (Preferences->General->Enable overlays by layer)
* Colours A and B now highlighted in palette window
* File actions can now enable and use an extended set of variable substitutions (see handbook section A.7)
* New image format PMM (Portable MultiMap) added for interoperable storage and exchange of images : See handbook section A.2.4 for details
* WebP file format save/load added
* LBM file format (ILBM/PBM) save/load added
* XPM files with 65-92 colours are now saved with smaller size
* XPM files with up to 16M colours can now be saved and loaded as RGB images
* ICC colour profiles embedded in BMP images now can be applied on load
* OS/2 BMP files now load properly
* Raw RGB palette files (6-bit PAL and 8-bit ACT) can now be loaded/saved via the Palette menu
* TIFF compression made configurable
* Dimensions can now be specified when loading SVG files
* SVG files now can be loaded through 'rsvg-convert', in absence of GTK+2 librsvg plugin
* Animation frames now can be saved in any suitable supported file format
* Animation cycles can now specify sequence steps as containing several layers, or none : See handbook section 9.3.3 for details
* Passing a list of files on command line is now possible using --flist option
* Filenames passed on command line can now be sorted alphabetically with --sort option
* Image loading and new image creation are now undoable by default
* Committing paste when changing tool is now enabled by default
* Saving an image now commits paste if auto commit mode is enabled
* "Scale canvas" and "Resize canvas" now remember their aspect ratio toggle setting
* The Free Rotate window now remembers the previous rotation angle in that mtPaint session
* Dock area state is now remembered across sessions (unless opened automatically, for multiple files on command line)
* Unmaximized window position and size are now remembered across sessions
* Alpha values for colours A & B are now displayed on settings toolbar when editing image with alpha in coupled alpha mode
* Drawing and fill operations on RGB images with colour protection mask now are up to 20 times faster
* Undo system now uses a bit less memory
* Initial undo memory size is now 1/4 of available memory
* Support for compiling with giflib 5, libpng 1.6, libjpeg 9, OpenJPEG 2.3 added
* Compilation now works using gcc-5.5 or clang and GTK+1
* Compilation now works using gcc-10 or clang-11
* BUGFIX - Compilation without JPEG and TIFF support now works again
* BUGFIX - FreeType text tool now skips directory loops when scanning font directories
* BUGFIX - Geometry info on the status bar now correctly updates after arrow keys or Escape key
* BUGFIX - Gradient button no longer fails to show current gradient mode after showing settings toolbar
* BUGFIX - Preview of Transform Colour no longer ignores area within paste marquee
* BUGFIX - Ctrl+left/right/double click now set both colour and alpha from canvas in coupled alpha mode, as they should
* BUGFIX - New image creation from system clipboard now respects "Undoable" toggle
* BUGFIX - "Fix aspect ratio" now doesn't sometimes adjust both dimensions
* BUGFIX - Problem with layers list in inactive dock tab sometimes not updating is now eliminated
* BUGFIX - All keyboard shortcuts now work in Image View mode, as they should
* BUGFIX - Transparent colour in composite images now works again
* BUGFIX - Flood fill with shapeburst gradient now works again
* BUGFIX - Flood fill with pattern now works when starting on colour A
* BUGFIX - Saving LSS16 images no longer produces broken files in certain rare cases
* BUGFIX - Trying to load a broken LSS16 file (truncated to header or less) no longer causes crash
* BUGFIX - Loading certain broken BMP files no longer causes crash
* BUGFIX - JPEG and PNG files damaged beyond all hope now properly fail to load (instead of just a library error and 0x0 image)
* BUGFIX - PAM files with type BLACKANDWHITE are no longer loaded as grayscale (except if written as grayscale - ImageMagick does that)
* BUGFIX - Loading PAM files with unknown TUPLTYPE doesn't cause crash
* BUGFIX - SVG files starting with "Snap To Tile Grid" restricts the positions of tools to tile grid points - B key toggles on/off
* sRGB colour scale generation added to palette editor
* sRGB gradients added
* Line tool now uses stroke gradient when no gradient placement exists
* "Palette->Pick Gradient" approximates an A->B gradient using colours from current palette (see handbook section 3.3.9)
* New palette sort mode added - Brightness
* "Image->Segment" added : See handbook section 6.10 for details
* Colour chooser popup added - press 'E' to open
* Posterize function in Transform Colour window now has 3 types - Bitwise, Truncated, Rounded
* Toggle to transform RGB clipboard image added to Transform Colour window
* The Convert To Indexed window now remembers the previous settings in that mtPaint session
* Text pasting tools now support multiline text (use Ctrl+Enter to insert line breaks)
* "~/.fonts" directory added to default font paths for FreeType text tool on Linux
* Animated GIF and multipage TIFF files now can be loaded into layers (one frame/page per layer)
* GIF animation file exploding is now done internally in mtPaint, not Gifsicle
* "Explode Frames" can now save frames in any suitable supported file format
* File actions can now specify file format conversion : See handbook section A.7 for details
* Netpbm file formats (PBM/PGM/PPM/PAM) save/load added
* PCX file format save/load added
* SVG file format import added (using librsvg; requires GTK+ 2.4 or later)
* Better support for loading CMYK TIFF files as RGB/RGBA
* ICC colour profiles embedded in PNG, JPEG and TIFF images now can be applied on load (using LittleCMS)
* JPEG2000 file format support now can be compiled with either JasPer or OpenJPEG library
* GIF loader made more tolerant to truncated or malformed GIF files
* PNG and TGA loaders now convert palette-based alpha into an alpha channel
* "Palette->Open" now can extract palette from indexed images in any supported file format
* "Scale Canvas" now has 3 boundary extension modes - Mirror, Tile, Void
* Filename and modified status now part of undo system
* Transparent colour now part of undo system
* Palette sorting, dragging a colour, or removing duplicate colours now do not lose transparent colour
* New keyboard shortcuts added - J for lasso tool, D for line tool, F for flood fill tool
* Toolbar and menu icons are now themeable (Preferences->Paths->Default Theme)
* Command line globbing now possible using -w option, e.g. mtpaint -w "*.jpg"
* Loading default settings from /etc/mtpaint/mtpaintrc is now supported in Windows version
* Name and location of user settings file is now configurable : See handbook section A.6.4 for details
* "Smart grid" and gamma correction are now enabled by default
* "Selective error propagation" for dithering is now at 85% by default
* Drawing and fill tools now are 2-3 times faster
* Support for compiling with libpng 1.4, libjpeg 8a, and zlib 1.2.5 added
* Configure script rewritten, now understands standard variables and options for installation paths and (cross-)compilation settings
* Minimum required GTK+2 version now can be specified as configure option (e.g., "./configure gtk2.8")
* Workaround for bug in GTK+ versions 2.14.0 - 2.14.2, 2.16.0, 2.16.1 added (spin buttons had wrong max values)
* Workaround for unknown problem in GTK+ version 2.24.4 added (program locked up when trying to save a file when layers list is active)
* BUGFIX - Problems with editing large images at high zoom levels are now eliminated
* BUGFIX - Titlebar now displays new image's filename after loading layers file, as it should
* BUGFIX - Layers list now correctly displays selected layer after loading layers file
* BUGFIX - Layers window now correctly displays transparent colour after it has been modified elsewhere
* BUGFIX - Other layers shown on canvas are now redrawn properly when current layer is moved
* BUGFIX - Loading TIFF files with X or Y mirroring doesn't cause crash
* BUGFIX - Planar TIFF files with alpha now load properly
* BUGFIX - Transparency in indexed TGA files is now read properly
* BUGFIX - Failed operations now do not flag image as modified
* BUGFIX - Gradient colours are now properly updated after converting indexed image to RGB
* BUGFIX - Cut operation in gradient mode when no placement exists now draws shapeburst gradient as it should
* BUGFIX - Drawing arrowheads with tablet enabled now works properly
* BUGFIX - Drawing arrowheads now doesn't produce corrupted undo frames
* BUGFIX - Builtin file selector now properly handles manual edits in directory box
* BUGFIX - Problem with FreeType text dialog occasionally hiding behind main window is now eliminated
* BUGFIX - Lists in FreeType text dialog now don't fail to update or scroll
* BUGFIX - FreeType text renderer now can handle PCF bitmap fonts
* BUGFIX - FreeType text renderer now properly handles TTF fonts with embedded bitmaps
* BUGFIX - FreeType text renderer now doesn't mistake some Unicode fonts for non-Unicode
* BUGFIX - ":unscaled" font paths in xorg.conf are now parsed properly
* BUGFIX - Redraw lag when moving a dialog over main window in Windows is now greatly reduced (fixed in GTK+)
* BUGFIX - Ctrl+T key now draws selection outline as it should - keyboard shortcut for text tool is now Shift+T
* BUGFIX - Handbook installed into a path with spaces in it no longer fails to open in nondefault browser on Windows
* BUGFIX - Internationalization no longer fails on Windows when the current directory is not the installation directory
* BUGFIX - Redraw glitches in builtin file selector on Windows are now eliminated
* BUGFIX - Drag 'n' drop of files with non ASCII characters in names now works on Windows
* "Distance to A+B" palette sort mode removed due to utter uselessness
3.31 2009-4-15
* Japanese translation updated by Norihiro YONEDA
* Swedish translation updated by Daniel Nylander and Fredrik Forsmo
* French translation updated by Plume
* Builtin file selector uses stock file and directory icons on GTK+2
* Default settings are loaded from file /etc/mtpaint/mtpaintrc if it exists
* BUGFIX - Compilation with GTK+ colour selector now works
* BUGFIX - Escape key now works properly in builtin file selector in GTK+1
* BUGFIX - Filename length in builtin file selector no longer is limited to 100 characters
* BUGFIX - Resizing the canvas window now doesn't cause polygon marquee to slide out of place
* BUGFIX - Polygon marquee shrunk by resizing the canvas is now redrawn properly
* BUGFIX - Problem with message windows not responding to mouse in some cases is now eliminated
3.30 2009-2-12
* Chinese (Simplified) translation updated by Cecc
* Dutch translation added by Hans Strijards
* Italian translation added by Angelo Gemmi
* Swedish translation added by Daniel Nylander
* Spanish translation updated by Miguel Anxo Bouzada, Francisco Jose Rey
* Galician translation updated by Miguel Anxo Bouzada
* Czech translation updated by Martin Petricek
* French translation updated by Johan Serre
* Portuguese translation updated by Tiago Silva
* Turkish translation updated by Tutku Dalmaz
* Russian translation updated
* New colour picker (old one available as configure option)
* New file picker (old one available as configure option)
* Some menu items can have an icon (if set in the preferences)
* Dock area added which now holds the former command line window (View->Show Dock)
* Layers window handling reworked to make it more responsive
* Layers window: position now editable via spin buttons
* Layers window: transparent colour toggle removed
* L key now toggles the layers window off (if the main window has focus)
* "Composite to New Layer" operation added to Layers menu
* Palette can be copied to or from the canvas using the Edit menu
* System clipboard can be imported or exported using the Edit menu
* Horizontal and vertical ramps can be created using the Selection menu
* Shapeburst gradient now used for filling gradients when no placement exists (see handbook section 3.5.6.5)
* Angular and conical gradients added
* New image creation can now be made undoable
* New image or layer can now be created from system clipboard or internal clipboard
* Screenshots can now be grabbed into a new layer
* Lasso tool now trims existing clipboard if no selection is present
* Image->Skew skews image in one or two directions
* View->Configure Grid sets grid colour preferences
* "Smart Grid" toggle shows layer boundaries around transparent pixels
* "View->Tracing Image" added : See handbook section 5.5 for details
* Gaussian blur effect for images with alpha now is about 40% faster and uses less memory
* Kuwahara-Nagao blur effect added (edge-preserving blur)
* Dilation and erosion effects added
* Seven new edge detection filters added - Sobel, Prewitt, Kirsch, Gradient, Roberts, Laplace, Morphological
* Invert effect now respects masking
* Drawing operations on utility channels now respect tool opacity
* Drawing in image channel with coupled alpha now ignores drawing modes for alpha channel
* Smudge tool now works about two times faster
* 12 new blend modes added - Multiply, Divide, Screen, Dodge, Burn, Hard Light, Soft Light, Difference, Darken, Lighten, Grain Extract, Grain Merge
* Ctrl+Double click selects average colour underneath brush square or selection marquee
* "Convert to indexed" using current palette now truncates the palette only if requested
* "Convert to indexed" PNN and Wu quantizers now have diameter based weighting option
* Brush preview area, canvas, view and palette window now do not lose mouse button release events in GTK+1
* Brush preview area border now can't be messed up by theme engines
* Makefiles now honor DESTDIR
* Configure script now honors CC
* Shift+Enter while pasting swaps clipboard with canvas (see handbook section 4.9)
* Communal memory space now implemented for layers (see handbook section 8.2.1)
* Support using ImageMagick for GIF animation, instead of Gifsicle - "./configure imagick"
* BUGFIX - Polygon line selection now clearer in Windows version
* BUGFIX - Occasional redraw glitches in paste and gradient previews eliminated
* BUGFIX - "Remove All Layers" with layers window closed doesn't cause crash
* BUGFIX - Pasting in tint mode into indexed images' utility channels now works correctly
* BUGFIX - Gradient preview now properly shows effect of mask channel on alpha channel
* BUGFIX - Alt+S key now opens Selection menu as it should
* BUGFIX - Directory for animation frames is created relative to layers file, as it should be
* BUGFIX - Saving animation frames in PNG format doesn't cause crash
* BUGFIX - When pasting to a new layer it is created untitled, as it should
* BUGFIX - CMYK JPEG files now load properly as RGB
* BUGFIX - Drawing with A to B gradient in utility channels now respects left/right button
* BUGFIX - Saving PNG images with more than one utility channel now works properly
3.21 2008-6-8
* Russian translation added by Sergey Irupin
* Spanish translation updated by Antonio Sanchez Leon
* Galician translation added by Miguel Anxo Bouzada
* Use 'xdg-open' if available to open HTML help in default browser on Linux
* Relaxed sanity checking in XPM loader to accept files with malformed headers
* "Exact Conversion" option added to Palette->Create Quantized
* Counting used colours now about twice as fast
* Workaround for bug in libpng versions 1.2.17 - 1.2.24 added (was losing extra channels when loading)
* BUGFIX - Canvas, view and palette area borders now can't be messed up by theme engines
* BUGFIX - Persistent rectangle selection now doesn't steal arrow keys from gradient placement tool
* BUGFIX - Internationalization now works properly in GTK+1
* BUGFIX - FreeType text rendering quality improved on Windows
* BUGFIX - Text in active menu items no longer becomes invisible on Windows Vista (fixed in GTK+)
* BUGFIX - Removable drives are now visible in fileselector on Windows (fixed in GTK+)
3.20 2007-12-27
* mtPaint is now licensed as GPL version 3 (or later)
* Chinese (Simplified) added by puppychinese(Cecc)
* Japanese translation added by Norihiro YONEDA
* Polish translation updated by Groszek150(LucaS)
* FreeType text pasting facility added
* Actions section added to File menu
* Sharper image reduction toggle added to "Scale Canvas"
* Spacing for non-continuous tools is now configurable - right click the continuous mode toggle
* "Blend" drawing mode added
* "Unassociate Alpha" operation added to Channels menu
* Palette is now stored in RGB PNG files
* PNG compression level made configurable
* TGA file format save/load added
* JPEG2000 file format save/load added (EXPERIMENTAL)
* XPM files with up to 4096 colours can now be saved and loaded as RGB images
* Palette->Dither A sets colour A/B and the pattern based on the current A colour and the palette
* Max-min quantizer added - creates small palettes with higher saturation and contrast
* Faster and better PNN quantizer replaces the old DL3 quantizer
* Full error precision toggle added to settings page of 'Convert To Indexed' window
* Eliminated flicker when scrolling canvas in GTK+1 and GTK+2/Windows
* Dragging the main/view window divider made to behave in GTK+1
* Main menu now rearranges itself to fit in window
* Tile based undo system introduced to save memory when changes affect only small areas of the canvas
* Max undo levels now configurable (from 10 to 1000)
* Image loading now can be made undoable
* mtPaint can now be compiled as a library (libmtpaint)
* Image rotation now sharper and faster
* Difference of Gaussians effect added
* Patterns increased to 100 and now stored in xbm_patterns.xbm file
* Edit->Create Patterns removed as patterns are now saved as standard XBM file
* Preferences->Paths : Default palette and patterns now selectable
* BUGFIX - Colour selective mode with zoom < 100% doesn't cause crash
* BUGFIX - Gradient preview now properly shows effect of mask channel
* BUGFIX - "Resize Canvas" with negative offset now works correctly
* BUGFIX - Clipboard rotation now properly handles clipboard alpha
* BUGFIX - Transparency in greyscale PNG files is now read properly
* Lanczos3 rescaling filter removed due to unfavourable results
* DL1 quantizer removed for the same reason
3.11 2007-4-2
* Slovak translation added by Jozef Riha
* French translation updated by Sylvain Cresto
* LSS16 file format load/save added to support syslinux bootup splash screens
* Clipboard alpha is now used as clipboard mask when pasting to image without alpha channel
* "Resize Canvas" can now be used to offset an image, with or without changing its size
* TIFF files with alpha saved by Photoshop now load properly
* Bash-specific idioms in configure script replaced by POSIXy equivalents
* Zoom combo boxes are now better behaved in GTK+1
* DL3 quantizer now faster by about 30%
* BUGFIX - Negative values in "Transform Colour" and "Resize Canvas" dialogs are read correctly again
* BUGFIX - Drawing a 2 pixels high filled ellipse doesn't cause crash
* BUGFIX - Tool cursor now doesn't revert to default one after showing or hiding view window
* BUGFIX - Keyboard shortcut for swapping colours A & B now works in GTK+1
* BUGFIX - Clicking the palette grid in gradient editor now works properly in GTK+1
* BUGFIX - All spin buttons are now wide enough in GTK+1
* BUGFIX - No more redraw glitches when toggling view window on/off in GTK+1
3.10 2007-1-22
* Gradient drawing mode added
* Palette shifting feature added to Palette menu
* Turkish translation added by Muhammet Kara, Tutku Dalmaz
* Taiwanese Chinese translation added by Wei-Lun Chao
* Image tiling mode added to "Resize Canvas"
* Greyscale effect now respects masking
* Gamma corrected greyscale effect added
* Gaussian blur effect replaces the old blur effect
* Unsharp mask effect added
* More palette sort modes added
* Controls for alpha/selection/mask A/B added to "Edit colour A & B"
* RGB and HSV colour scales generation integrated into palette editor
* New advanced dithering modes with many configuration options added to "Convert To Indexed" window
* Optional gamma correction for image scaling, rotation, Gaussian blur and unsharp mask
* Smudge tool can be configured to ignore opacity mode - right click the tool icon
* Smudge tool respects tool opacity for RGB images
* Channel deletion made easier to use
* View window can now be placed under drawing window using the View menu or 'H' key
* "Blend A to B" with colour A identical to B now works like GIMP's Color To Alpha filter
* Arrows and Shift+Arrows now move cursor around on canvas
* Enter now simulates left mouse click, and Backspace, right click
* '[' ']' and '{' '}' keys now used to change colour A/B
* Ctrl+scroll wheel now scrolls canvas left-right (GTK+2 only)
* Shift-+/- keys now zooms view window in/out
* Shift-1...Shift-4 keys now switch to image/alpha/selection/mask channel
* Selection marquee now persists through tool changes
* Lasso tool now works for rectangular selections too
* Indexed clipboard can now be pasted into RGB image
* Image save/load completely rewritten, now with better support for TIFF, BMP, XPM and XBM formats
* Channels, composite images and undo images can now be saved to any suitable supported file format
* Image channel can now be saved and loaded just like other channels
* Paint tool in tint mode now respects both Tint +/- toggle and left/right mouse button
* "By image channel" flood fill option now works in non-fuzzy mode too
* BUGFIX - Polygonal selections now respect selection channel
* BUGFIX - Effects menu items now remain enabled for indexed images' utility channels
* BUGFIX - 'Focus View Window' toggle now doesn't cause snatching during layer drags
* BUGFIX - Smudge now doesn't make pixels darker than it should
3.02 2006-10-14
* Polish translation added by Simek
* Spanish translation updated for version 3 by Antonio San
* All menu items on all translations updated
* Saving compressed GIF files now supported (using libgif)
* Library detection in configure script improved
* BUGFIX - Image scaling and rotation in nearest-neighbour mode now work correctly
* BUGFIX - Lasso tool now properly handles clipboard alpha
* BUGFIX - Clipboard save path now can be changed in Preferences
* BUGFIX - XPM files smaller than 4*4 pixels can now be loaded
3.01 2006-7-15
* German translation updated for version 3
* BUGFIX - Memory alignment problems on Windows fixed (might affect speed)
* BUGFIX - RGB-specific menu items now properly disabled in indexed mode
3.00 2006-6-21
* Channels facilities added
* Menus & toolbars reworked to be more task oriented
* Toolbars can now be toggled on and off via the View menu
* Drag 'n' drop from file managers supported for loading new layers
* Animation preview has a play toggle
* Clicking palette numbers opens up "Palette Editor" window
* Paste preview now respects the palette protection mask
* Transform Colour Window - Hue control added
* Transform Colour Window - Selective palette option
* Undo now less wasteful of memory when adjusting the palette
* Major rewrite of back end code to improve performance
* Colour A/B editor now uses GTK+ colour dialog
* Ctrl+Arrows resizes selection area
* Flood fill has fuzzy mode - right click icon for controls
* Saving/Loading clipboards now includes mask data
* Saving a composite layer image now de-coupled from saving the layer data file
* Most documentation has been removed from the F1 help and is now in HTML form
* HTML documentation available as a separate download package
* mtPaint mailing lists set up - http://sourceforge.net/mail/?group_id=155874
* configure script makes no assumptions about CPU - ./configure --help
* BUGFIX - Saving a composite layer image does not occasionally leave transparent areas
* BUGFIX - Transforming colour of palette with preview (RGB images) now works properly
* BUGFIX - Status bar now updated after removing all layers
* BUGFIX - Scaling image to width/height 1/2 does not cause crash
2.31 2006-5-31
* German translation contributed by Oliver Frommel
2.30 2006-3-1
* Animation of layers is now possible - see 'Animation' in docs for info
* Animated GIF files can now be opened frame by frame if you have Gifsicle installed
* File->Export Animated GIF ... can create an animated GIF file if you have Gifsicle installed
* Image can now be centralized in the window - Preferences->Zoom to toggle
* Image scaling facilities improved and extended by Dmitry Groshev
* Edit->Tint Mode added by Dmitry Groshev - see bottom of Tools section in docs for info
* Ellipse outline code improved by Dmitry Groshev
* Selection->Alpha Blend A,B : see website tutorial for example
* Various tutorials added to website
* BUGFIX - Clone tool does not misbehave when dragging beyond image edge with CTRL pressed
* BUGFIX - Text rotation should now work properly in Windows XP
* BUGFIX - Files with UTF8 characters in the filenames can now be opened in Windows
* BUGFIX - Status bar wobbling with some Windows systems resolved
* BUGFIX - Text paste + selection mask + zoom doesn't lose mask
2.20 2006-1-1
* mtPaint web site is now at http://mtpaint.sourceforge.net/
* View window now part of the main window - V key toggles on/off
* Ctrl+Arrows or Ctrl+Shift+Arrows moves a layer around
* View->Set Zoom window sets zoom for main/view window + focus toggle - Z key toggles on/off
* Palette scaling now uses colour A/B as start/finish colour & index
* Gimp palette files (*.gpl) can now be loaded/saved via the Palette menu
* If file ~/mtpaint.gpl exists, it is loaded as the default palette on startup
* Transparent GIF information can now be loaded/saved + general GIF import improvements
* Transparent pixels in main edit area are now grey chequers in single layer mode
* Counting all RGB colours now requires 2MB not 16MB
* Custom icons can now be compiled for mtPaint - see ./src/icons1/README for details
* Maximum layers increased to 100
* Windows binary installation has been simplified with standard setup.exe
* BUGFIX - When changing tool with function key, brush perimeter is now cleared properly
2.10 2005-11-20
* Support for pressure sensitive tablets via Preferences window, see 'Tools' in docs
* Colour histogram added to Information window (Ctrl-I)
* Palette->Create Quantized (Wu) method added - Good for small palettes e.g. 32
* Convert to Indexed window improved
* View window now has focus toggle to keep locked on the main window centre position
* Info window now counts all colours in RGB images - if 16MB memory is available
* Preferences window is now non-modal and has an apply button
* ./src/Makefile simplified
* Brazilian Portuguese translation contributed by Paulo Trevizan
* BUGFIX - memory leak fixed with DL1 Quantize & Floyd-Steinberg
* BUGFIX - segfault fixed when pressing * and - keys simultaneously in pan window
* BUGFIX - segfault fixed when using read only filesystems with no ~/.mtpaint write access
* BUGFIX - segfault fixed when loading certain animated GIFs - warning message instead
2.03 2005-9-23
* BUGFIX - Resolved rare segfault when shifting a layer up/down with no view window showing
2.02 2005-9-19
* PNG files with a transparency can now be loaded and saved - See 'Limitations'
* View->Show zoom grid - Parameters set in Preferences window->Zoom
* "Save As" window improved with new file attribute widgets
* Status bar changes - (T=?) for transparencies, 'x' in selection geometry
* mtPaint project registered with Launchpad/Rosetta to help with translations:
https://launchpad.net/products/mtpaint/+translations
* Partial French translation contributed by Nicolas Velin
* Partial Portuguese translation contributed by Israel G. Lugo
* BUGFIX - Copy/Paste in auto commit mode followed by paint tool does not draw extra line
2.01 2005-8-14
* BUGFIX - Resolved occasional segfault when loading and showing all layers in the main window
* BUGFIX - Windows version: screenshot grabbing now hides the new image window
2.00 2005-8-7
* View -> Layers Window - See 'Layers' in docs for info
* Edit -> Paste To New Layer
* Polygon selection tool added - See 'Selections' in docs for info
* Selection -> Lasso Selection & Cut
* Clone tool added - See 'Tools' in docs for info
* View window now has zoom facility
* Line tool now has the ability to draw an arrowhead - See 'Tools' in docs for info
* Relative filenames passed at command line now converted to absolutes
* GTK+2: Grabbing a screenshot via the new image window minimizes main window first
* Preferences toggle to commit paste when changing tool
* Keyboard shortcuts for recently used files - Shift+Ctrl+F1 = Revert
* Icons on toolbar reworked to accommodate most commonly used functions
* BUGFIX - Greyscale PNG files are now loaded properly
0.97 2005-6-4
* Text tool: Antialiasing without a background colour now possible (alpha blended edges)
* Text tool: Changing colour/pattern during paste updates text
* Text tool: Independent toggles for background colour and rotation
* Changes are flagged in the titlebar
* Brushes and patterns increased to 81
* Maximum tool size/flow increased to 200
* Logic of colour A/B editor improved for RGB images
* Help docs now supported with international po files
* Accuracy of circle brush in continuous mode improved
* Specifying a CPU is now more generic - see "./configure --help"
* BUGFIX - Loading a large image now correctly adjusts the scrollbars
* BUGFIX - Czech characters improved in Windows
0.95 2005-5-4
* Text tool added - See "Tools" for usage
* View window now available via View menu or 'V' key
* Brush presets now available via Edit menu, F3, icon on toolbar or preview area
* Screenshot grabbing facility - "mtpaint -s" or File->New - See "Tips" section
* Right mouse button paints with A/B reversed
* Palette -> Swap A & B
* Mouse scroll wheel zooms in/out if set in Preferences - GTK+2 only
* Function keys don't zoom any more - use numbers 1-9 instead
* Various new keyboard shortcuts added/changed
* Website redesign contributed by Abdulla Al Muhairi
* BUGFIX - Xine does not now close Pan Window/Pattern chooser popup
* BUGFIX - Occasional pasting 'slips' eliminated
* BUGFIX - Edit all colours window now works properly when screen depth <24 bpp
0.90 2005-4-12
* Internationalization now supported with "./configure intl"
* Spanish translation contributed by the Guadalinex team
* Czech translation contributed by Pavel Ruzicka
* Preferences window allows the manual selection of language translations
* Man page contributed by Guadalinex team - "./configure man" to install
* Pasting with less than 100% opacity now shows preview of resulting transparency
* Widget behaviour improved in Quantize & Transform Colour windows
* Page Up/Down keys now work as expected in Command Line Window
* Changing tool does not tax the CPU as much on older hardware
* Accuracy improvements for line tool and circle in continuous mode when size>1
* Max geometry is now 16384x16384
* New typeface for palette numbers
* Several more configure script options added - "./configure --help" for details
* BUGFIX - Pattern flood fills now work under all conditions
* BUGFIX - In GTK+2, filenames with non ASCII characters are now be handled properly
* BUGFIX - Attempting to fill on a protected colour does not set opacity to 100%
* BUGFIX - Ctrl -/+ Adjusts opacity as originally designed
* BUGFIX - Undo/Redo to an indexed image with smudge does not cause segfault
0.75 2005-2-15
* Pan window added - See "Tools" for usage
* Colour protection mask now works with RGB images
* Selection -> Outline Ellipse + New icon : Thickness = tool size
* Converting RGB images to indexed improved:
* i) 'Exact' option now uses less memory + slightly quicker
* ii) Accuracy of 'Dither' method is now better
* iii) Floyd-Steinberg option added
* iv) Palette quantization DL1 & DL3 options added with[out] Floyd-Steinberg
* Palette -> Create Quantized (DL1 & DL3) : RGB images only
* Palette -> Sort -> Frequency : Sorts an indexed palette by pixel frequency on canvas
* Palette Sort window has apply button
* File -> Export Undo Images (reversed)
* Transform Colour window improved:
* i) Apply button added
* ii) Toggles to transform RGB image and/or palette
* iii) Gamma moved to top and is now the 1st operation to be done
* iv) Window now pops up where the mouse pointer is positioned
* v) Return/Enter keys now press 'OK' button
* Tips section added to README & help
* Progress window is now movable and does not remain above other windows
* configure script improved to cater for systems without pkg-config, i.e. GTK+1 only
* BUGFIX - Memory leaks in read_png & read_jpeg cleaned up
* BUGFIX - Corrupt PNG & JPEG files are now handled properly
* BUGFIX - Palette area update invisibility on some systems corrected
* BUGFIX - Jerking of vertical/horizontal scrollbars when zooming eliminated
* BUGFIX - Zooming in GTK+1 now respects the specified zoom centre
* BUGFIX - While pasting, cursor flickering on slow hardware has been eliminated
0.50 2005-1-1
* Smudge tool - RGB images only, continuous or non-continuous modes
* Image -> Free Rotate : Rotate image at any angle
* Selection -> Mask Colour A,B : See 'Selections' in README/Help for example
* Selection -> Unmask Colour A,B
* Selection -> Mask All Colours
* Selection -> Clear Mask : Revert to normal opaque rectangular paste
* Counting unique RGB pixels is faster (particularly GTK+2)
* Selection geometry on status bar now also shows selection diagonal angle + length
* Preferences -> Force zoom to 100% or current zoom with a new file
* Numbers 1-9 set zoom, Insert=Transform colours, Delete=Crop, Page Up/Down=Scale/Resize
* 1-9, +, -, =, Q, Home, Insert, etc... keys work while Command Line window selected
* Compilation now works using gcc-2.95 and libpng-1.0
* Configure script contains example of how to compile with Slackware 8.0
* Undo/Redo stops current paste only when changing to/from Indexed/RGB
* BUGFIX - Occasional Pango warnings in GTK+2 upon startup stopped
* BUGFIX - When undo/redo clears paste the cursor is not stuck as 4 way arrow
* BUGFIX - Last pixel of straight line now painted if size=1
0.47 2004-12-11
* View -> 10%, 25%, 50% : +, -/= keys can be used to get zoom below 100%
* View -> Toggle Image View (Home key) : Show/Hide palette, menu, status bar etc
* View -> Command Line Window : Shows files passed in command line (if > 1)
* Effects -> Isometric Transformations
* Palette colours : Shift + click/drag moves a colour to a new index
* Posterize effect merged with brightness/contrast/saturation window -> Transform Colour
* Gamma added to Transform Colour window
* Using "mtpaint -v" or calling from other binary name starts in full image view
* Selection resize method improved + right button = clear
* Limitation relating to flood fill colour resolved for most situations
* Using arrow keys while painting changes colour A/B
* Edit -> Opacity Undo Mode (F12) replaces Preferences option
* Greyscale now in Effects menu
* Escape key now selects first button of alert box
* Default tool is now selection
* Colour toolbar icons moved together
* Keyboard shortcuts added for Cropping/Transforming colours/Invert/Greyscale
* Compiler options tweaked - faster/smaller binary
* BUGFIX - Undo/Redo to indexed/RGB while pasting RGB/indexed does not cause segfault
0.45 2004-11-21
* Tool opacity is now variable so subtle RGB painting is now possible
* Effects -> Edge Detect, Sharpen, Soften, Blur, Emboss
* Scaling a 24 bit RGB image is now smoother
* Image -> Convert To Indexed : Exact conversion, Quantized Palette, Dithered, Scattered
* Save TIFF files (uncompressed RGB)
* Save GIF files (uncompressed indexed 256 colours)
* Save BMP files (uncompressed indexed & RGB)
* File -> Export Undo Images
* File -> Export ASCII Art
* Palette -> Add Colours changed to Set Palette Size, i.e. reduction is now possible
* File -> Save As : If image has a filename, put this into the filename box
* When loading a png/tiff/jpeg/gif only use progress bar if image is large
* Middle mouse button sets the zoom centre
* Image -> Preferences : Q key can now quit mtPaint
* Spray/shuffle mouse pointers made more consistent
* BUGFIX - Rotating the image with no undo memory does not cause image corruption
* BUGFIX in GTK+2.4 - Pressing enter while pasting does not press toolbar button
0.40 2004-11-8
* File -> New : Create 24 bit RGB image
* Most functions/tools now work on a 24 bit RGB canvas (except colour protection mask)
* Load/Save 24 bit RGB PNG files
* Load 24 bit RGB/Greyscale, Save 24 bit RGB JPEG files - Quality set by Preferences
* Load TIFF files
* Load uncompressed BMP files
* Image -> Convert To RGB
* Image -> Convert To Indexed
* Edit -> Load Clipboard -> 1-12
* Edit -> Save Clipboard -> 1-12
* More icons have been added to the toolbar
* File menu now contains a recently used file list - Set limit in Preferences window (0-20)
* Maximum canvas height/width set to 8192, minimum set to 1
* Last directory loaded from command line is now correctly remembered
* Palette -> Load default
* BUGFIX - Resizing/Scaling with no undo memory does not cause segfault
* BUGFIX - Using a static tool after resize/scale/rotate does not create unwanted shapes
* BUGFIX - An occasional crash when using the GTK+ colour selector was corrected
0.37 2004-10-25
* Image -> Brightness-Contrast-Saturation
* Image -> Scale Canvas
* Image -> Resize Canvas
* Image -> Preferences : The user can specify what info is displayed on the status bar
* Image -> Rotate Clockwise
* Image -> Rotate Anti-Clockwise
* Selection -> Rotate Clockwise
* Selection -> Rotate Anti-Clockwise
* Help -> About (F1) : Reflects the current README file
* File -> New : User can now create a greyscale image
* Palette -> Edit All Colours
* Palette -> Create Scale : Create blended colours from one index to another
* Palette -> Sort
* Image -> Bacteria Effect : Try it a few times with "mtpaint graphics/bacteria.png"
* File selection window geometry stored independently from main window geometry
* BUGFIX - Progress window now appears above file selector in GTK+2 Windows/Gnome
* BUGFIX - Maximizing A/B colour editor window does not cause segfault or window corruption
0.35 2004-10-16
* Sources can now be compiled using MinGW/MSYS to create a Windows version of mtPaint
* XPM & XBM images can now be loaded and saved
* File -> Preferences : User can view/set XPM/XBM transparency/hotspot info
* Straight line tool added to toolbar
* Image menu now houses Convert to greyscale, Posterize, Information, Preferences and Crop
* Image -> Flip Vertically
* Image -> Flip Horizontally
* Image -> Invert
* Selection -> Flip Vertically
* Selection -> Flip Horizontally
* Undo/redo levels displayed on status bar
* Progress bar is now used for load/save/flip - Useful for large images or slow machines
* Minimum main window size set so 640x480 screens can use mtPaint
* Setting zoom centre now requires Shift+Right button - Avoids clash with paste/line tools
* BUGFIX - Save failure does not now clear the mem_changed flag
* BUGFIX - Accuracy of max undo levels improved in Information window
* BUGFIX - Menus updated when loading file from command line (no option to crop to 1x1)
0.30 2004-10-4
* GIF images can now be loaded into mtPaint
* Mouse pointers for static shapes improved
* Selection menu now houses "Select All", "Select None"
* Selection -> Outline Rectangle : Draws outline of tool size pixels around current selection
* Selection -> Filled Rectangle : Fills the current selection area
* Selection -> Filled Ellipse : Draws a filled ellipse inside the current selection area
* Selection -> Line - Slash : Draws straight line on selection from top left to bottom right
* Selection -> Line - Backslash : Draws straight line on selection from top right to bottom left
* Edit -> Continuous Painting : Makes painting the 6 static shapes continuous and smooth
* Status bar has "CON" to indicate if the program is in Continuous Painting mode
* Information window now contains details of current clipboard data
* Ctrl+Left Button while over palette sets colour B (useful for stylus/tablet users)
* configure script extended - use "./configure --help" for details
* BUGFIX - Selecting None during paste at high zoom does not tax the CPU
* BUGFIX - Changing tool during paste at high zoom does not tax the CPU
* BUGFIX - Pasting while already pasting at high zoom does not cause program termination
* BUGFIX - Selection/Paste perimeter does not get corrupted in GTK+2 while using scrollbars
0.25 2004-9-24
* Palette -> Convert To Greyscale : Converts current palette to greyscale
* Edit -> Crop : Crops the canvas to the current selection
* The red/white selection box can now be resized by clicking and dragging the corners
* Selection geometry is now displayed on the status bar
* Start with blank canvas if file was not successfully loaded from the command line
* Enter/Return now commits a paste even when Shift/Ctrl are pressed
* Loading a palette can now be undone/redone
* BUGFIX - Errors while trying to "Save As" are now treated properly
* BUGFIX - Pressing CTRL and moving the mouse without pressing a button does not tax the CPU
* BUGFIX - Loading a palette with 256 colours is now possible
* BUGFIX - Paste To Centre menu item now behaves as expected
* BUGFIX - mem_changed flag now cleared properly after saving - no more false warnings
* BUGFIX - Fixed segfault when cutting during a paste (edit menu logic improved)
* Select/Paste now uses less CPU and doesn't flicker as much
* Undo system rewritten:
* Accommodates geometry changes from cropping
* Only malloc's memory as required, not en masse at beginning
* Tool perimeter shows correct position when mouse is over the grey background
0.24 2004-9-19
* Makefile - Default compiler options changed to make no optimizations
* Preferences -> Option to show mouse cursor as the tool shape
* Preferences -> Confirm exit alert now optional
* When quitting/opening/file-new without saving changes, the user is warned
* TODO list in README updated with my plans for the next few months
* File -> Save As given shortcut Shift+Ctrl-S
* Selection tool added to toolbar
* Edit -> Cut
* Edit -> Copy
* Edit -> Paste To Centre
* Edit -> Paste
* Edit -> Select All
* Edit -> Select None
* Preferences -> Option to not display clipboard image while pasting
* README updated with details about selection, copy, cut, paste etc.
* BUGFIX in memory.c - correct posterizing now happens whether using -ffast-math or not
* BUGFIX in GTK+1 - CTRL shortcuts are now not blocked by size/spray spin buttons
* First public release of mtPaint on gnomefiles.org
0.23 2004-9-13
First public release of mtPaint on freshmeat.net
0.21 2004-9-6
Beta testing begins!
0.20 2004-9-5
9 basic tools + palette edit/add/posterize/merge/load/save finished
0.16 2004-8-31
Undo/Redo implemented - default MAX_UNDO = 100
0.15 2004-8-28
Patterns implemented with square tool + colour protection mask implemented
0.05 2004-8-14
PNG load + image display & zoom features
0.04 2004-8-12
Program structure fixated
0.02 2004-8-7
GUI fixated
0.00 2004-7-4
Project started - GUI & back end designs kicked around on paper and in Glade
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/README 0000664 0000000 0000000 00000023406 14713254463 0021040 0 ustar 00root root 0000000 0000000 --------------------------------------------------
mtPaint 3.51 - Copyright (C) 2004-2024 The Authors
--------------------------------------------------
See 'Credits' section for a list of the authors.
mtPaint is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
mtPaint is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
mtPaint is a simple GTK+1/2/3 painting program designed for creating icons and pixel based artwork. It can edit indexed palette or 24 bit RGB images and offers basic painting and palette manipulation tools. It also has several other more powerful features such as channels, layers and animation. Due to its simplicity and lack of dependencies it runs well on GNU/Linux, Windows and older PC hardware.
There is full documentation of mtPaint's features contained in a handbook. If you don't already have this, you can download it from the mtPaint website.
If you like mtPaint and you want to keep up to date with new releases, or you want to give some feedback, then the mailing lists may be of interest to you:
http://sourceforge.net/mail/?group_id=155874
-----------
Compilation
-----------
In order to compile mtPaint on a GNU/Linux system you will need to have the libraries and headers for GTK+1 and/or GTK+2 and/or GTK+3, libpng and zlib. If you want to load or save JPEG, TIFF, JPEG2000 and WebP files you will also need libjpeg, libtiff, libopenjpeg or libjasper, and libwebp. If you want to compile the international version you will need to have the gettext system and headers installed. You may then adjust the Makefile/sources to cater for your needs and then:
For GTK+2
=========
./configure
make
su -c "make install"
For GTK+1
=========
./configure gtk1
make
su -c "make install"
For GTK+3
=========
./configure gtk3
make
su -c "make install"
If you want to uninstall these files from your system, you should type:
su -c "make uninstall"
There are various configure options that may be useful for some people. Use "./configure --help" to find out what options are available. If you are compiling a binary for distribution to other peoples systems, the option 'asneeded' is particularly useful (if the gcc option -Wl,--as-needed is available, i.e. binutils >=2.17), as it only creates links to libraries which are absolutely necessary to mtPaint. For example, without this option if you compile mtPaint against GTK+2.10 you will find it will not run on GTK+2.6 systems because Cairo doesn't exist on the older system.
Use "./configure release" to compile mtPaint with the same optimizations we use for distribution packages; this includes the "asneeded" option. To enable internationalization, add the "intl" option.
If you are compiling mtPaint on an older system without gtk-config, you may need to adjust the configure script so that the GTK+1 settings are done manually. I have provided an example in the configure script to demonstrate.
You can call mtpaint with the -v option and the program will start in viewer mode so there will be no palette, menu bar, etc. You can restore these items by pressing the "Home" key. After installation you can create a symlink to add a viewer command, e.g.
su -c "ln -s mtpaint /usr/local/bin/mtv"
Then you can open some graphics files with "mtv *.jpg". This is a shortcut to writing "mtpaint -v *.jpg". mtPaint can only edit one image at a time, but when you have more than one filename in the command line a window will appear with all of the filenames in a list. If you select one of the names, it will be loaded. I find this is helpful for editing several icons or digital photos.
After running mtPaint for the first time, a new file is created to store your preferred settings and previously used files etc. This file is named ".mtpaint" and stored in the user's home directory. If you rename or remove this file then the next time mtPaint is run it will use the default settings.
The easiest way to compile mtPaint for Windows is using MinGW cross-compiler on a GNU/Linux system, and the included "winbuild.sh" shell script. The script will compile mtPaint and all required runtime files from source code, and prepare a binary package and a separate development package, with headers and development libraries; see "gtk/README" for details.
Another alternative is doing a manual build with MinGW on GNU/Linux, for which you'll need to have installed requisite library and header files, corresponding to the runtime libraries you intend to use. Since version 3.40, the official mtPaint package for Windows uses custom-built runtime files, and development libraries and headers, produced in the automated build process described above; with version 3.31 and earlier, you could use the packages listed below for MinGW/MSYS build. Either way, after the headers and libraries are installed where MinGW expects them, you configure mtPaint for cross-compiling, then run "make" as usual. Like this:
PATH=/usr/i586-mingw32/bin:$PATH ./configure --host=i586-mingw32 [options]
make
It should also still be possible to compile mtPaint for Windows the old way, using MinGW/MSYS on a Windows system. However this wasn't done for quite some time, so the description below still refers to older versions of MinGW, MSYS and library packages. mtpaint.exe compiled according to it, will only be compatible with runtime libraries packaged with mtPaint 3.31 or older; to use the newer runtime (of version 3.40+), you'll need to use library and header files produced while cross-compiling the runtime (see above).
If you want to do this you must first download the mtPaint 3.31 setup program and install the files to "C:/Program Files/mtPaint/" and then:
1) Install MinGW and MSYS - http://www.mingw.org/
MinGW-3.1.0-1.exe - to c:/MinGW/
MSYS-1.0.10.exe - to c:/msys/
2) Install the GTK+2 developer packages (and dependencies like libpng) - ftp://ftp.gtk.org/pub/gtk/v2.6/win32/ and http://gnuwin32.sourceforge.net/packages.html
For GTK+2 you will need to download and extract the following zip files to c:/msys:
gtk+-dev-2.6.4.zip
pango-dev-1.8.0.zip
atk-dev-1.9.0.zip
You will also need to download and extract the following zip files to c:/msys:
glib-dev-2.6.4.zip
libpng-1.2.7-lib.zip
zlib-1.2.1-1-lib.zip
libungif-4.1.4-lib.zip
jpeg-6b-3-lib.zip
tiff-3.6.1-2-lib.zip
If you want to compile the internationlized version you will need to download and extract to c:/msys the following zip files from http://sourceforge.net/projects/gettext :
gettext-runtime-0.13.1.bin.woe32.zip
gettext-tools-0.13.1.bin.woe32.zip
libiconv-1.9.1.bin.woe32.zip
For some reason I needed to move c:/msys/bin/msgfmt & xgettext to c:/msys/local/bin/ in order to get it to run properly. If you have trouble running msgfmt you may need to do the same.
3) Download the latest mtPaint sources and unpack them to c:/msys.
4) To compile the code you must then use MSYS to "./configure", then "make" and "make install"
5) If all goes well, you should have mtpaint.exe which you can run using the same method described above. You may have compiled mtPaint using more recent versions of libraries so you may need to change the filenames, such as libpng12.dll -> libpng13.dll and libungif.dll -> libungif4.dll.
Because I very rarely use Windows, I am sadly unable to support any other version of GTK+ but the one in the official package. That is, while mtPaint should in principle be able to compile and run with any version of GTK+2, only the packaged version has undergone real testing on Windows, and has been patched to fix all known Windows-specific bugs in it.
-------
Credits
-------
mtPaint is maintained by Dmitry Groshev.
wjaguar@users.sourceforge.net
http://mtpaint.sourceforge.net/
The following people (in alphabetical order) have contributed directly to the project, and are therefore worthy of gracious thanks for their generosity and hard work:
Authors
Dmitry Groshev - Contributing developer for version 2.30. Lead developer and maintainer from version 3.00 to the present.
Mark Tyler - Original author and maintainer up to version 3.00, occasional contributor thereafter.
Xiaolin Wu - Wrote the Wu quantizing method - see wu.c for more information.
General Contributions (Feedback and Ideas for improvements unless otherwise stated)
Abdulla Al Muhairi - Website redesign April 2005
Alan Horkan
Alexandre Prokoudine
Antonio Andrea Bianco
Charlie Ledocq
Dennis Lee
Donald White
Ed Jason
Eddie Kohler - Created Gifsicle which is needed for the creation and viewing of animated GIF files http://www.lcdf.org/gifsicle/
Guadalinex Team (Junta de Andalucia) - man page, Launchpad/Rosetta registration
Lou Afonso
Magnus Hjorth
Martin Zelaia
Pasi Kallinen
Pavel Ruzicka
Puppy Linux (Barry Kauler)
Victor Copovi
Vlastimil Krejcir
William Kern
Translations
Brazilian Portuguese - Paulo Trevizan, Valter Nazianzeno
Czech - Pavel Ruzicka, Martin Petricek, Roman Hornik, Pavel Fric
Dutch - Hans Strijards, Pjotr
French - Nicolas Velin, Pascal Billard, Sylvain Cresto, Johan Serre, Philippe Etienne, Victor Copovi
Galician - Miguel Anxo Bouzada
German - Oliver Frommel, B. Clausius, Ulrich Ringel, Simon Brixel
Hungarian - Ur Balazs
Italian - Angelo Gemmi
Japanese - Norihiro YONEDA
Kabyle - Yacine Bouklif
Polish - Bartosz Kaszubowski, LucaS
Portuguese - Israel G. Lugo, Tiago Silva
Russian - Sergey Irupin, Dmitry Groshev
Simplified Chinese - Cecc
Slovak - Jozef Riha
Spanish - Guadalinex Team (Junta de Andalucia), Antonio Sanchez Leon, Miguel Anxo Bouzada, Francisco Jose Rey, Adolfo Jayme
Swedish - Daniel Nylander, Daniel Eriksson
Tagalog - Anjelo delCarmen
Taiwanese Chinese - Wei-Lun Chao
Turkish - Muhammet Kara, Tutku Dalmaz
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/configure 0000775 0000000 0000000 00000056347 14713254463 0022101 0 ustar 00root root 0000000 0000000 #!/bin/sh
# Mini configure script
# 26-01-2011
echo
MT_V="3.50.11"
MT_DATE="2024-11-08"
MT_VERSION="mtPaint $MT_V"
MT_LANG=NO
MT_MAN=NO
MT_POD=NO
MT_CPICK=mtpaint
MT_FPICK=mtpaint
MT_LISTS=2
MT_ANIM=Gifsicle
ICON_SET=icons1
GTK_FILE=_conf.txt
HELP=1
OS=
MARCH=
OPTS=YES
USE_THREADS=YES
AS_NEEDED=
DEFS=
WARN=
# Path overrides
MT_BINDIR=
MT_DATAROOT=
MT_DOCDIR=
MT_LOCDIR=
MT_MANDIR=
MT_PO=
MT_HOST=
# Initialize library-tracking vars
STATICLIBS=
for A in PNG JPEG JP2 TIFF WEBP FT CMS
do
eval "N$A="
eval "STATIC_$A="
STATICLIBS="$STATICLIBS \$STATIC_$A"
done
GTK=
GTKVERSION=
# Prevent nasty surprises from locale
unset LC_ALL
export LC_COLLATE=C # LC_CTYPE=C LC_NUMERIC=C
for A in "$@"
do
case "$A" in
"staticpng" ) STATIC_PNG=PNG;;
"jpeg" ) NJPEG=YES;;
"nojpeg" ) NJPEG=NO;;
"staticjpeg" ) STATIC_JPEG=JPEG;;
"jp2v1" ) NJP2=OpenJPEG;;
"jp2v2" ) NJP2=OpenJPEG2;;
"jasper" ) NJP2=JasPer;;
"nojp2" ) NJP2=NO;;
"staticjp2" ) STATIC_JP2=JPEG2000;;
"tiff" ) NTIFF=YES;;
"notiff" ) NTIFF=NO;;
"statictiff" ) STATIC_TIFF=TIFF;;
"webp" ) NWEBP=YES;;
"nowebp" ) NWEBP=NO;;
"staticwebp" ) STATIC_WEBP=WebP;;
"noft" ) NFT=NO;;
"staticft" ) STATIC_FT=FreeType;;
"lcms" ) NCMS=LittleCMS;;
"lcms2" ) NCMS=LittleCMS2;;
"nolcms" ) NCMS=NO;;
"staticlcms" ) STATIC_CMS=LittleCMS;;
"gtk1" ) GTK=1;;
"gtk"[23]* ) GTK=2
[ "$A" != "${A#gtk3}" ] && GTK=3
# Override minor version of installed GTK+
GTKVERSION="`echo "$A" | sed -e 's/gtk[23]\.\{0,1\}\([0-9]*\).*/\1/'`";;
"intl" ) MT_LANG=YES;;
"man" ) MT_MAN=YES;;
"pod" ) MT_POD=YES;;
"gtkfilesel" ) MT_FPICK=gtkfilesel;;
"gtkcolsel" ) MT_CPICK=gtkcolsel;;
"oldlists" ) MT_LISTS=1;;
"imagick" ) MT_ANIM=ImageMagick;;
"icons"* ) ICON_SET=$A;;
"win" ) OS="MinGW/MSYS"
GTK=2;;
"cflags" ) OPTS=CFLAGS;;
"386" ) MARCH='-march=i386';;
"486" ) MARCH='-march=i486';;
"586" ) MARCH='-march=i586';;
"686" ) MARCH='-march=i686';;
"--cpu="* ) MARCH="-march=${A#*=}";;
"slow" ) OPTS=NO;;
"debug" ) OPTS=DEBUG;;
"release" ) OPTS=RELEASE;;
"thread" ) USE_THREADS=YES;;
"nothread" ) USE_THREADS=NO;;
"asneeded" ) AS_NEEDED=-Wl,--as-needed;;
"--help" ) HELP=0;;
"--prefix="* ) MT_PREFIX="${A#*=}";;
"--bindir="* ) MT_BINDIR="${A#*=}";;
"--datarootdir="* ) MT_DATAROOT="${A#*=}";;
"--docdir="* ) MT_DOCDIR="${A#*=}";;
"--localedir="* ) MT_LOCDIR="${A#*=}";;
"--mandir="* ) MT_MANDIR="${A#*=}";;
"--host="* ) MT_HOST="${A#*=}";;
"--fakeroot"* ) FAKE_ROOT="${A#*=}"
FAKE_LL="${A%%=*}"
FAKE_LL="${FAKE_LL#--fakeroot}";;
"panic" ) WARN="-Wextra -Wno-missing-field-initializers -Wno-unused-parameter";;
"flush" ) echo Clearing out directory to original state
echo
make clean
echo
rm $GTK_FILE
rm po/mtpaint.pot
rm -rf src/graphics
exit;;
"merge" ) xgettext src/*.c src/*.h --keyword=_ --keyword=__ -o po/mtpaint.pot
cd po
NEW_DIR=trans_
mkdir $NEW_DIR`date +%d-%m-%Y-%H-%M-%S`
for file in *.po
do
echo New file = $file-a
mv "$file" "$file-a"
msgmerge -N "$file-a" mtpaint.pot > "$file"
mv "$file-a" $NEW_DIR*
done
rm mtpaint.pot
mv $NEW_DIR* ../../old_trans
exit;;
"newpo" ) xgettext src/*.c src/*.h --keyword=_ --keyword=__ -o po/mtpaint.pot
exit;;
# Override variable
[!=]*=* ) MT_VAR=${A%%=*}
if [ "$MT_VAR" != "${MT_VAR#*[!A-Za-z0-9_]}" ]
then
echo "Invalid variable: '$MT_VAR'"
else
eval $MT_VAR=\${A#*=}
export $MT_VAR
fi;;
* ) echo "Unrecognized option '$A'"
exit;;
esac
done
if [ "$HELP" = 0 ]
then
cat << 'EOF' ; exit
Usage: ./configure [OPTION] ... [VAR=VALUE] ...
Options:
win .............. Configure for Windows MinGW / MSYS
gtk1 ............. Configure for GTK+1
gtk2 ............. Configure for GTK+2
gtk2.VER ......... Configure for GTK+2, minor version VER
gtk3 ............. Configure for GTK+3
gtk3.VER ......... Configure for GTK+3, minor version VER
gtkfilesel ....... Use GtkFileSelection file picker
gtkcolsel ........ Use GtkColorSelection colour picker
oldlists ......... Use GtkList and GtkCList lists
imagick .......... Use ImageMagick for GIF animation tasks
thread ........... Use multithreading
nothread ......... Don't use multithreading
cflags ........... Use CFLAGS environment variable
--cpu= ........... Target a specific CPU, e.g. athlon-xp, x86-64
686 .............. Target 686 machines
586 .............. Target 586 machines
486 .............. Target 486 machines
386 .............. Target 386 machines
slow ............. Don't use compiler optimizations
asneeded ......... Use linker optimization --as-needed
release .......... Use the set of optimizations which work best for mtPaint code
debug ............ Include debugging info in binary
--host= .......... Cross-compile with a specific toolchain, e.g. i586-mingw32
staticpng ........ Statically link PNG library
jpeg ............. Use libjpeg
nojpeg ........... Don't use libjpeg
staticjpeg ....... Statically link JPEG library
jp2v1 ............ Use libopenjpeg
jp2v2 ............ Use libopenjpeg2
jasper............ Use libjasper
nojp2 ............ Don't use libopenjpeg and libjasper
staticjp2 ........ Statically link JPEG 2000 library
tiff ............. Use libtiff
notiff ........... Don't use libtiff
statictiff ....... Statically link TIFF library
webp ............. Use libwebp
nowebp ........... Don't use libwebp
staticwebp ....... Statically link WebP library
noft ............. Don't use FreeType
staticft ......... Statically link FreeType library
lcms ............. Use LittleCMS
lcms2............. Use LittleCMS2
nolcms ........... Don't use LittleCMS
staticlcms ....... Statically link LittleCMS library
intl ............. Use internationalized po files
man .............. Install the mtPaint man page
--fakeroot=DIR ... DIR = location of library and include files to use for cross-compilation
--fakeroot64=DIR . DIR = ... when targeting a 64-bit system
icons ............ Compile with alternative icon set - see ./src/icons1/README for details
--prefix=DIR ..... DIR = prefix location of all installs, e.g. /usr or /usr/local (default)
--bindir=DIR ..... DIR = location of bin file to install, ${prefix}/bin by default
--docdir=DIR ..... DIR = location of documentation to install, ${prefix}/share/doc/mtpaint by default
--localedir=DIR .. DIR = location of locale files to install, ${prefix}/share/locale by default
--mandir=DIR ..... DIR = location of man page to install, ${prefix}/share/man/man1 by default
panic ............ Enable rarely-useful warnings - developers only
flush ............ Flush directories to initial state
newpo ............ Create ./po/mtpaint.pot
merge ............ Update all po files with new strings - developers only
Environment variables:
CC ............... C compiler (defaults to gcc)
CFLAGS ........... C compiler flags (not recommended; for enabling better optimizations use 'release' option instead)
LDFLAGS .......... linker flags, e.g. -L
CPPFLAGS ......... C preprocessor flags, e.g. -I
CCLD ............. "test link" command (defaults to $CC -nostartfiles)
Default settings: GNU/Linux system, O2 optimizations, English only version,
mtpaint file picker, mtpaint colour picker.
pkg-config gtk+-2.0 is checked to determine GTK+2 availability in GNU/Linux
EOF
fi
### Detect the OS
if [ -n "$OS" ] ; then
: # Do nothing
elif [ "$OSTYPE" = "msys" ] ; then
OS="MinGW/MSYS"
elif [ "$OSTYPE" != "${OSTYPE#darwin}" ] ; then
OS="Darwin"
elif [ -z "$MT_HOST" ] ; then
OS="GNU/Linux"
elif [ "$MT_HOST" != "${MT_HOST%mingw32*}" ] ; then
OS="MinGW/GNU/Linux"
else
OS="Other/GNU/Linux"
fi
### Prepare to use selected icon set
mkdir -p src/graphics
cp src/$ICON_SET/*.xpm src/$ICON_SET/*.xbm src/graphics
### Choose which sub-makefiles to run
MAKE_DIRS=src
[ "$MT_LANG" = YES ] && MAKE_DIRS="$MAKE_DIRS po" # translations
[ "$MT_MAN" = YES ] && MAKE_DIRS="$MAKE_DIRS doc" # man page
### Setup directories
if [ "$OS" != "${OS#MinGW/}" ]
then
EXEEXT=".exe"
MT_PREFIX="${MT_PREFIX-/c/Program Files/mtPaint}"
else
MT_PREFIX="${MT_PREFIX-/usr/local}"
fi
MT_BINDIR="${MT_BINDIR:-$MT_PREFIX/bin}"
MT_DATAROOT="${MT_DATAROOT:-$MT_PREFIX/share}"
MT_DOCDIR="${MT_DOCDIR:-$MT_DATAROOT/doc/mtpaint}"
MT_MANDIR="${MT_MANDIR:-$MT_DATAROOT/man}"
if [ "$OS" != "${OS#MinGW/}" ]
then
MT_LOCDIR="${MT_LOCDIR:-$MT_BINDIR/locale}"
# Want package-relative path on Windows
MT_PKGDIR=${MT_BINDIR%/bin}
[ "$MT_PKGDIR" = "$MT_BINDIR" ] && MT_PKGDIR=${MT_BINDIR%/lib}
MT_PKGDIR="$MT_PKGDIR/"
MT_PO="/"
while [ "$MT_LOCDIR" = "${MT_LOCDIR#$MT_PKGDIR}" ]
do
MT_PO="/..$MT_PO"
if [ "$MT_PKGDIR" = "${MT_PKGDIR%/[!/]*/}" ]
then # Cannot relativize path - leave it be
MT_PO=
break
fi
MT_PKGDIR="${MT_PKGDIR%/[!/]*/}/"
done
MT_PO="$MT_PO${MT_LOCDIR#$MT_PKGDIR}"
else
MT_LOCDIR="${MT_LOCDIR:-$MT_DATAROOT/locale}"
MT_PO="$MT_LOCDIR"
fi
### Setup compiler
# Only GCC and GNU toolchain are fully supported at the time
# Clang is recognized mainly to avoid mixups with GCC version checks
# No support for GNU-incompatible linkers in fakeroot mode
INCLUDES=
LIBS=
if [ "$OS" != "${OS%GNU/Linux}" ] || [ "$OS" = "Darwin" ]
then
CC=${CC:-`which ${MT_HOST:+$MT_HOST-}gcc`}
PKG_CONFIG=${PKG_CONFIG:-${MT_HOST:+$MT_HOST-}pkg-config}
fi
CC=${CC:-gcc}
# Use compiler as linker in tests - this way, both accept "-Wl," in LDFLAGS
CCLD=${CCLD:-$CC -nostartfiles}
# Get compiler type
CCNAME=gcc # by default
$CC -v 2>&1 | grep -q "clang version" && CCNAME=clang
# Get compiler version
CCVER=`$CC -dumpfullversion -dumpversion`
# Get target architecture
CCARCH=`$CC -dumpmachine`
# For eternally misconfigured, Windows-hosted MinGW
[ "$CCARCH" != "${CCARCH#mingw32}" ] && CCARCH=i586-mingw32
# For any properly built toolchain
ARCH=${ARCH:-${CCARCH%%-*}}
if [ -n "$FAKE_ROOT" ] # A way to replace just some libraries, leaving others be
then
PKGCONFIG () # Check both locations in turn
{
PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR="$FAKE_ROOT/lib$FAKE_LL/pkgconfig" \
pkg-config --define-variable=prefix="$FAKE_ROOT" "$@" \
2> /dev/null || "$PKG_CONFIG" "$@"
}
MT_TESTLINK="$CCLD -L$FAKE_ROOT/lib$FAKE_LL -Wl,--unresolved-symbols=ignore-in-shared-libs $LDFLAGS"
MT_TESTCOMP="$CC -std=c89 -fno-builtin -isystem $FAKE_ROOT/include $CPPFLAGS ${MT_TESTLINK#$CCLD}"
else
PKGCONFIG ()
{
"$PKG_CONFIG" "$@"
}
MT_TESTLINK="$CCLD $LDFLAGS"
MT_TESTCOMP="$CC -std=c89 -fno-builtin $CPPFLAGS $LDFLAGS"
fi
if [ "$OS" != "${OS%/MSYS}" ]
then
MT_TESTLINK="redir -e /dev/null $MT_TESTLINK -L/lib"
MT_TESTCOMP="redir -e /dev/null $MT_TESTCOMP -L/lib"
INCLUDES="-I/include"
LIBS="-L/lib"
fi
IS_LIB()
{
$MT_TESTLINK -$1 -o _conf.tmp > /dev/null 2>&1
}
CAN_DO()
{
echo "main() { $1; }" > _conf.c
$MT_TESTCOMP _conf.c -o _conf.tmp > /dev/null 2>&1
}
HAVE_FUNC()
{
CAN_DO "$1()"
}
HAVE_CC_VER()
{
# First 2 parts of GCC or Clang version
MT_VN0=${CCVER%%.*}
MT_VN1=${CCVER#$MT_VN0}
MT_VN0=${MT_VN0%%[!0-9]*}
MT_VN1=${MT_VN1#.}
MT_VN1=${MT_VN1%%[!0-9]*}
# Compare them to given version
[ ${1%%.*} -eq "$MT_VN0" ] && [ ${1#*.} -le "$MT_VN1" ] || \
[ ${1%%.*} -lt "$MT_VN0" ]
}
HAVE_GCC_VER()
{
[ "$CCNAME" = gcc ] && HAVE_CC_VER $1
}
HAVE_CLANG()
{
[ "$CCNAME" = clang ]
}
HAVE_CLANG_VER()
{
[ "$CCNAME" = clang ] && HAVE_CC_VER $1
}
### Detect libraries and functions
if CAN_DO "volatile int v, z; z = __sync_fetch_and_add(&v, 1)"
then
DEFS="$DEFS -DHAVE__SFA"
fi
if HAVE_FUNC "mkdtemp"
then
DEFS="$DEFS -DHAVE_MKDTEMP"
fi
if IS_LIB "ljpeg"
then
NJPEG=${NJPEG:-YES}
fi
NJPEG=${NJPEG:-NO}
if IS_LIB "lopenjp2"
then
NJP2=${NJP2:-OpenJPEG2}
fi
if IS_LIB "lm -lopenjpeg"
then
NJP2=${NJP2:-OpenJPEG}
fi
if IS_LIB "ljasper"
then
NJP2=${NJP2:-JasPer}
fi
NJP2=${NJP2:-NO}
if IS_LIB "ltiff"
then
NTIFF=${NTIFF:-YES}
fi
NTIFF=${NTIFF:-NO}
if IS_LIB "lwebp"
then
NWEBP=${NWEBP:-YES}
fi
NWEBP=${NWEBP:-NO}
if IS_LIB "lfreetype"
then
NFT=${NFT:-YES}
fi
NFT=${NFT:-NO}
if IS_LIB "llcms2"
then
NCMS=${NCMS:-LittleCMS2}
fi
if IS_LIB "llcms"
then
NCMS=${NCMS:-LittleCMS}
fi
NCMS=${NCMS:-NO}
### Setup optimizations
if [ "$OPTS" = RELEASE ]
then
# Target i386 when compiling for any x86 CPU with GCC;
# this produces smallest *AND* fastest binary
# !!! Questionable, now; need retesting, and proper cross-configuring too
# With Clang, target pentium4; no incompatible HW expected in the wild,
# and anything lesser results in much slower code
case $ARCH in
i?86) HAVE_CLANG && MARCH=${MARCH:--march=pentium4}
MARCH=${MARCH:--march=i386};;
esac
CFLAGS="-O2 $MARCH"
# Add optimizations which are proven to really make mtPaint code faster
if HAVE_CLANG
then : # Clang - no useful extra flags
elif HAVE_GCC_VER 4.0
then # GCC 4.x
CFLAGS="$CFLAGS -fweb -fomit-frame-pointer -fmodulo-sched"
else # GCC 3.x
CFLAGS="$CFLAGS -fweb"
fi
# Do not add unneeded dependencies
AS_NEEDED="-Wl,--as-needed"
# Disable GTK+ debug code
DEFS="$DEFS -DGTK_NO_CHECK_CASTS -DG_DISABLE_CAST_CHECKS"
elif [ "$OPTS" = DEBUG ]
then
CFLAGS="-ggdb"
elif [ "$OPTS" = YES ]
then
CFLAGS="-O2 $MARCH"
elif [ "$OPTS" = NO ]
then
CFLAGS="$MARCH"
else # $OPTS = CFLAGS
MARCH=
# And leave CFLAGS alone
fi
[ "$OPTS" != DEBUG ] && LDFLAGS="-s $LDFLAGS" # Strip debug info
# Set Windows-specific flags
if [ "$OS" != "${OS#MinGW/}" ]
then
CFLAGS="-mms-bitfields $CFLAGS"
LDFLAGS="-mwindows $LDFLAGS"
fi
# Revert the changed defaults in GCC 10 and Clang 11
{ HAVE_GCC_VER 10.0 || HAVE_CLANG_VER 11.0; } && CFLAGS="$CFLAGS -fcommon"
# Enable warnings
WARN="-Wall $WARN"
if HAVE_GCC_VER 4.0
then # Tell gcc 4.x to shut up
WARN="$WARN -Wno-pointer-sign"
fi
if HAVE_GCC_VER 4.1
then # Tell gcc 4.1+ to shut up some more
WARN="$WARN -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast"
fi
if HAVE_GCC_VER 6.0
then # Tell gcc 6.x to stop misleading
WARN="$WARN -Wno-misleading-indentation"
fi
if HAVE_GCC_VER 9.3
then # Tell gcc 9.3+ to cut it short
WARN="$WARN -Wno-stringop-truncation -Wformat-truncation=0 -Wformat-overflow=0"
fi
if HAVE_CLANG
then # Tell Clang to clang less
WARN="$WARN -Wno-pointer-sign -Wno-int-to-pointer-cast -Wno-string-plus-int"
fi
if HAVE_CLANG_VER 11.0
then # Tell Clang 11.x to clang yet less
WARN="$WARN -Wno-pointer-to-int-cast -Wno-misleading-indentation"
fi
# Deterministic compile
SET_RANDSEED=
if HAVE_CLANG || HAVE_GCC_VER 3.3
then
SET_RANDSEED='-frandom-seed=$*'
fi
# Apple linker
[ "$OS" = "Darwin" ] && AS_NEEDED=
### Setup libraries
MT_DLIBS=
MT_SLIBS=
LIB_NAME () # ( lib_ID , static_mode , libs )
{
if [ "$2" ]
then
MT_SLIBS="$MT_SLIBS ${1:+-l$1}$3"
else
MT_DLIBS="$MT_DLIBS ${1:+-l$1}$3"
fi
}
if [ "$NJP2" = OpenJPEG2 ]
then
INCLUDES="$INCLUDES `PKGCONFIG libopenjp2 --cflags 2>/dev/null`" || \
INCLUDES="$INCLUDES -I/usr/include/openjpeg-2.0"
LIB_NAME openjp2 "$STATIC_JP2"
DEFS="$DEFS -DU_JP2=2"
fi
if [ "$NJP2" = OpenJPEG ]
then
INCLUDES="$INCLUDES `PKGCONFIG libopenjpeg1 --cflags 2>/dev/null`" || \
INCLUDES="$INCLUDES `PKGCONFIG libopenjpeg --cflags 2>/dev/null`" || \
INCLUDES="$INCLUDES -I/usr/include/openjpeg"
LIB_NAME openjpeg "$STATIC_JP2"
DEFS="$DEFS -DU_JP2"
if [ "$STATIC_JP2" ] || [ "$OS" != "${OS#MinGW}" ]
then
DEFS="$DEFS -DOPJ_STATIC"
fi
fi
if [ "$NJP2" = JasPer ]
then
LIB_NAME jasper "$STATIC_JP2"
DEFS="$DEFS -DU_JASPER"
fi
if [ "$NWEBP" = YES ]
then
LIB_NAME webp "$STATIC_WEBP"
DEFS="$DEFS -DU_WEBP"
fi
if [ "$NTIFF" = YES ]
then
LIB_NAME tiff "$STATIC_TIFF"
DEFS="$DEFS -DU_TIFF"
fi
if [ "$NJPEG" = YES ]
then
LIB_NAME jpeg "$STATIC_JPEG"
DEFS="$DEFS -DU_JPEG"
fi
if [ "$NFT" = YES ]
then
DEFS="$DEFS -DU_FREETYPE"
if [ "$OS" = "GNU/Linux" ] && which freetype-config > /dev/null 2>&1
then # Do it the old way, for native builds on *very* old distros
FT_INCLUDES="`freetype-config --cflags`"
LIB_NAME "" "$STATIC_FT" "`freetype-config --libs`"
elif [ "$OS" != "${OS%/MSYS}" ]
then # pkg-config may be missing on Windows - hardcode its results
FT_INCLUDES="-I/include/freetype2"
LIB_NAME "" "$STATIC_FT" "-lfreetype -lz"
else # Use pkg-config
FT_INCLUDES="`PKGCONFIG freetype2 --cflags`"
LIB_NAME "" "$STATIC_FT" "`PKGCONFIG freetype2 --libs`"
fi
# Remove irrelevant GLib2 headers when compiling for GTK+1
if [ "$GTK" = 1 ]
then
for ZAD in $FT_INCLUDES
do
[ "$ZAD" = "${ZAD#*/glib-2.0}" ] && INCLUDES="$INCLUDES $ZAD"
done
else
INCLUDES="$INCLUDES $FT_INCLUDES"
fi
# libiconv may be separate, or part of libc
HAVE_FUNC "iconv_open" || LIB_NAME iconv "$STATIC_FT"
fi
if [ "$NCMS" = LittleCMS2 ]
then
LIB_NAME lcms2 "$STATIC_CMS"
DEFS="$DEFS -DU_LCMS=2"
fi
if [ "$NCMS" = LittleCMS ]
then
LIB_NAME lcms "$STATIC_CMS"
DEFS="$DEFS -DU_LCMS"
fi
if [ -n "$FAKE_ROOT" ]
then
INCLUDES="$INCLUDES `PKGCONFIG libpng --cflags`"
LIB_NAME "" "$STATIC_PNG" "`PKGCONFIG libpng --libs`"
else
LIB_NAME png "$STATIC_PNG"
fi
LIB_NAME z "$STATIC_PNG"
LIB_NAME m
if [ "$MT_LANG" = YES ]
then
HAVE_FUNC "gettext" || LIB_NAME intl
DEFS="$DEFS -DU_NLS -DMT_LANG_DEST='\"$MT_PO\"'"
fi
# !!! Would be nice to subtract MT_SLIBS from MT_DLIBS first
LIBS="$LIBS $MT_DLIBS${MT_SLIBS:+ -Wl,-dn $MT_SLIBS -Wl,-dy}"
rm -f _conf.c _conf.tmp
### Setup GTK+
FOUND_GTK=
[ "$OS" != "${OS#MinGW/}" ] && GTK=2
[ "${GTK:-2}" = 2 ] && PKGCONFIG gtk+-2.0 --cflags > /dev/null 2>&1 && FOUND_GTK=2 GTK=2
[ "${GTK:-1}" = 1 ] && PKGCONFIG gtk+ --cflags > /dev/null 2>&1 && FOUND_GTK=1 GTK=1
[ "${GTK:-3}" = 3 ] && PKGCONFIG gtk+-3.0 --cflags > /dev/null 2>&1 && FOUND_GTK=3 GTK=3
GTK=${GTK:-1}
if [ "$USE_THREADS" = NO ] ; then
THREADS=
elif [ "$GTK" -ge 2 ] ; then
THREADS="gthread-2.0"
else # "$GTK" = 1
THREADS="gthread"
fi
# !!! It is assumed that the nondefault install prefix is the one GTK+ lives in
if [ "$FOUND_GTK" = 3 ] && [ ${GTKVERSION:-12} -ge 12 ] &&
PKGCONFIG --atleast-version=3.12 gtk+-3.0
then
GTKPREFIX=`PKGCONFIG gtk+-3.0 --variable=prefix`
INCLUDES="$INCLUDES `PKGCONFIG gtk+-3.0 $THREADS --cflags`"
LIBS="$LIBS `PKGCONFIG gtk+-3.0 $THREADS --libs`"
elif [ "$FOUND_GTK" = 3 ]
then
echo "GTK+3 versions prior to 3.12 are not and can not be supported"
exit 1
elif [ "$FOUND_GTK" = 2 ]
then
GTKPREFIX=`PKGCONFIG gtk+-2.0 --variable=prefix`
INCLUDES="$INCLUDES `PKGCONFIG gtk+-2.0 $THREADS --cflags`"
LIBS="$LIBS `PKGCONFIG gtk+-2.0 $THREADS --libs`"
elif [ "$FOUND_GTK" = 1 ]
then
# !!! Full equivalent to "gtk-config gtk" would be "pkg-config gtk+ gmodule",
# but for mtPaint, 'gmodule' is nothing but a nuisance anyway
GTKPREFIX=`PKGCONFIG gtk+ --variable=prefix`
INCLUDES="$INCLUDES `PKGCONFIG gtk+ $THREADS --cflags`"
LIBS="$LIBS `PKGCONFIG gtk+ $THREADS --libs`"
elif [ "$GTK" = 2 ] && [ "$OS" != "${OS%/MSYS}" ]
then # Windows system w/o working pkg-config
GTKPREFIX=/
INCLUDES="$INCLUDES -I/include/gtk-2.0 -I/lib/gtk-2.0/include -I/include/atk-1.0 -I/include/pango-1.0 -I/include/freetype2 -I/include/glib-2.0 -I/lib/glib-2.0/include"
LIBS="$LIBS -lgtk-win32-2.0 -lgdk-win32-2.0 -lpango-1.0 -lglib-2.0 -lgobject-2.0 -lgdk_pixbuf-2.0 ${THREADS:+-lgthread-2.0}"
elif [ "$GTK" = 1 ] && gtk-config --cflags > /dev/null
then # Very old GNU/Linux system
GTKPREFIX=`gtk-config gtk --prefix`
INCLUDES="$INCLUDES `gtk-config gtk $THREADS --cflags`"
LIBS="$LIBS `gtk-config gtk $THREADS --libs | sed 's/-rdynamic//'`"
elif [ "$GTK" = 1 ]
then # Even older GNU/Linux system
GTKPREFIX=/opt/gnome
GTK_INCLUDE="-I$GTKPREFIX/include/gtk-1.2 -I$GTKPREFIX/include/glib-1.2 -I$GTKPREFIX/lib/glib/include -I/usr/X11R6/include"
GTK_LIB="-L/usr/lib -L/usr/X11R6/lib -L$GTKPREFIX/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm"
echo
echo I have not been able to find gtk-config so I am assuming the following:
echo
echo GTK_INCLUDE = $GTK_INCLUDE
echo GTK_LIB = $GTK_LIB
echo
echo If these values are not right for your system, edit the configure script
echo
INCLUDES="$INCLUDES $GTK_INCLUDE"
LIBS="$LIBS $GTK_LIB"
else
echo "Failed to find required GTK+$GTK libraries" 1>&2
exit 1
fi
# Need to add this to use GTK+1 with GCC 5 or Clang
[ "$GTK" = 1 ] && { HAVE_CLANG || HAVE_GCC_VER 5.0; } && CFLAGS="$CFLAGS -std=gnu89"
# Also need to add "-lX11" on GTK+2/X systems
[ "$GTK" = 2 ] && [ "$LIBS" != "${LIBS#*gdk-x11}" ] && LIBS="$LIBS -lX11"
# Need the same on GTK+3/X systems even more
[ "$GTK" = 3 ] && PKGCONFIG gtk+-x11-3.0 && LIBS="$LIBS -lX11"
# GTK+ minor version to use
DEFS="$DEFS${GTKVERSION:+ -DGTK${GTK}VERSION=$GTKVERSION}"
# Widgets to use
if [ "$GTK" = 3 ]
then
MT_LISTS=2 # GtkList & GtkCList are with us no more
MT_FPICK=mtpaint # Neither is GtkFileSelection
elif [ "$GTK" = 2 ]
then # GTK+3 compatible things need some compatibility
[ ${GTKVERSION:-18} -lt 18 ] && MT_LISTS=1
[ "$FOUND_GTK" != 2 ] || PKGCONFIG --atleast-version=2.18 gtk+-2.0 || MT_LISTS=1
else # GTK+1
MT_LISTS=1
fi
# Stop the spam
[ "$GTK" = 2 ] && WARN="$WARN -Wno-deprecated-declarations"
### Set feature flags
[ "$USE_THREADS" = "YES" ] && DEFS="$DEFS -DU_THREADS"
if [ "$MT_FPICK" = mtpaint ]
then
DEFS="$DEFS -DU_FPICK_MTPAINT"
else # "$MT_FPICK" = gtkfilesel
DEFS="$DEFS -DU_FPICK_GTKFILESEL"
fi
if [ "$MT_CPICK" = mtpaint ]
then
DEFS="$DEFS -DU_CPICK_MTPAINT"
else # "$MT_CPICK" = gtkcolsel
DEFS="$DEFS -DU_CPICK_GTK"
fi
[ "$MT_LISTS" = 1 ] && DEFS="$DEFS -DU_LISTS_GTK1"
[ "$MT_ANIM" = ImageMagick ] && DEFS="$DEFS -DU_ANIM_IMAGICK"
# mtPaint version
DEFS="$DEFS -DMT_VERSION='\"$MT_VERSION\"'"
###
### Rebase the paths, for '--fakeroot' substitutions to work
FAKE_PATHS () # variable, key
{
FAKE_KEYS=" "
for A in $1
do
[ "$A" = "${A#$2/}" ] && continue
for B in "$GTKPREFIX/include" "$GTKPREFIX/lib"\
/usr/include /usr/lib /usr/local/include /usr/local/lib
do
[ "$A" != "${A#$2$B}" ] || continue
C="$2$FAKE_ROOT${A#$2${B%/*}}"
[ "$C" != "$A" ] && [ "$FAKE_KEYS" = "${FAKE_KEYS#* $C }" ] &&\
FAKE_KEYS="$FAKE_KEYS$C "
break
done
done
echo "$FAKE_KEYS"
}
if [ "$FAKE_ROOT" ]
then
# !!! Spaces in paths will NOT be well received here
FAKE_PATHS "$LIBS" -L
LIBS="-L$FAKE_ROOT/lib$FAKE_LL $FAKE_KEYS $LIBS"
FAKE_PATHS "$INCLUDES" -I
INCLUDES="-isystem $FAKE_ROOT/include $FAKE_KEYS $INCLUDES"
AS_NEEDED="-Wl,--as-needed,--no-add-needed,--unresolved-symbols=ignore-in-shared-libs"
fi
### Write config
cat << CONFIG > "$GTK_FILE"
CC = $CC $WARN
EXEEXT = $EXEEXT
MT_VERSION=$MT_VERSION
MT_DATE=$MT_DATE
MT_PREFIX="$MT_PREFIX"
MT_DATAROOT="$MT_DATAROOT"
MT_LANG_DEST="$MT_LOCDIR"
MT_MAN_DEST="$MT_MANDIR"
LDFLAG = $AS_NEEDED $LIBS $LDFLAGS
CFLAG = $DEFS $INCLUDES $CPPFLAGS $CFLAGS
subdirs = $MAKE_DIRS
BIN_INSTALL="$MT_BINDIR"
SET_RANDSEED = $SET_RANDSEED
CONFIG
### Report config
eval STATICLIBS=\"$STATICLIBS\"
STATICLIBS=`echo -n "$STATICLIBS" | sed -e 's/ */ /g' -e 's/^ //'`
cat << CONFIG
---------------------
mtPaint Configuration
---------------------
-------
General
-------
Version $MT_V
System $OS
Toolkit GTK+$GTK${GTKVERSION:+.$GTKVERSION}
Lists GTK+$MT_LISTS
File Picker $MT_FPICK
Colour Picker $MT_CPICK
Animation Package $MT_ANIM
Use FreeType $NFT
Use CMS $NCMS
Icon set $ICON_SET
Internationalized $MT_LANG
Multithreaded $USE_THREADS
--------
Compiler
--------
Optimizations $OPTS
CFLAGS $CFLAGS
LDFLAGS ${AS_NEEDED:+$AS_NEEDED }$LDFLAGS
Static libraries ${STATICLIBS:-NONE}
----------
File Types
----------
Use JPEG $NJPEG
Use JPEG 2000 $NJP2
Use TIFF $NTIFF
Use WebP $NWEBP
------------
Installation
------------
Binary install $MT_BINDIR
CONFIG
[ "$MT_LANG" = YES ] && cat << CONFIG
Locale install $MT_LOCDIR
Locale program $MT_PO
CONFIG
cat << CONFIG
Install man page $MT_MAN
CONFIG
[ "$MT_MAN" = YES ] && cat << CONFIG
Man page install $MT_MANDIR
CONFIG
echo
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/ 0000775 0000000 0000000 00000000000 14713254463 0020720 5 ustar 00root root 0000000 0000000 mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/HELP 0000664 0000000 0000000 00000012630 14713254463 0021375 0 ustar 00root root 0000000 0000000 ------------------
Keyboard shortcuts
------------------
Ctrl-N Create new image
Ctrl-O Open Image
Ctrl-S Save Image
Ctrl-Shift-S Save layers file
Ctrl-Q Quit program
Ctrl-A Select whole image
Escape Select nothing, cancel paste box
J Lasso selection
Ctrl-C Copy selection to clipboard
Ctrl-X Copy selection to clipboard, and then paint current pattern to selection area
Ctrl-V Paste clipboard to centre of current view
Ctrl-K Paste clipboard to location it was copied from
Ctrl-Shift-V Paste clipboard to new layer
Enter/Return Commit paste to canvas
Shift+Enter/Return Commit paste and swap canvas into the clipboard
Arrow keys Paint Mode - Move the mouse pointer
Arrow keys Selection Mode - Nudge selection box or paste box by one pixel
Shift+Arrow keys Nudge mouse pointer, selection box or paste box by x pixels - x is defined by the Preferences window
Ctrl+Arrows Move layer or resize selection box
Ctrl+Shift+Arrows Move layer or resize selection box by x pixels
Enter/Return Paint Mode - Simulate left click
Backspace Paint Mode - Simulate right click
[ or ] Change colour A to the next or previous palette item
Shift+[ or ] Change colour B to the next or previous palette item
Delete Crop image to selection
Insert Transform colours - i.e. Brightness, Contrast, Saturation, Posterize, Gamma
Ctrl-G Greyscale the image
Shift-Ctrl-G Greyscale the image (Gamma corrected)
Ctrl+M Mirror the image
Shift-Ctrl-I Invert the image
Ctrl-T Draw a rectangle around the selection area with the current fill
Ctrl-Shift-T Fill in the selection area with the current fill
Ctrl-L Draw an ellipse spanning the selection area
Ctrl-Shift-L Draw a filled ellipse spanning the selection area
Ctrl-E Edit the RGB values for colours A & B
Ctrl-W Edit all palette colours
Ctrl-P Preferences
Ctrl-I Information
Ctrl-Z Undo last action
Ctrl-R Redo an undone action
Shift-T Text Tool (GTK+)
T Text Tool (FreeType)
V View Window
L Layers Window
Ctrl-H Toggle Hide Image mode
B Toggle Snap to Tile Grid mode
X Swap Colours A & B
E Choose Colour
A Draw open arrow head when using the line tool (size set by flow setting)
S Draw closed arrow head when using the line tool (size set by flow setting)
D Line Tool
F Flood Fill Tool
+,= Main edit window - Zoom in
- Main edit window - Zoom out
Shift +,= View window - Zoom in
Shift - View window - Zoom out
1 10% zoom
2 25% zoom
3 50% zoom
4 100% zoom
5 400% zoom
6 800% zoom
7 1200% zoom
8 1600% zoom
9 2000% zoom
Shift + 1 Edit image channel
Shift + 2 Edit alpha channel
Shift + 3 Edit selection channel
Shift + 4 Edit mask channel
F1 Help
F2 Choose Pattern
F3 Choose Brush
F4 Paint Tool
F5 Toggle Main Toolbar
F6 Toggle Tools Toolbar
F7 Toggle Settings Toolbar
F8 Toggle Palette
F9 Selection Tool
F12 Toggle Dock Area
Ctrl + F1 - F12 Save current clipboard to file 1-12
Shift + F1 - F12 Load clipboard from file 1-12
Ctrl + 1, 2, ... , 0 Set opacity to 10%, 20%, ... , 100% (main or keypad numbers)
Ctrl + + or = Increase opacity by 1
Ctrl + - Decrease opacity by 1
Home Show or hide main window menu/toolbar/status bar/palette
Page Up Scale Image
Page Down Resize Image canvas
End Pan Window
---------------
Mouse shortcuts
---------------
Left button Paint to canvas using the current tool
Middle button Selects the point which will be the centre of the image after the next zoom
Right button Commit paste to canvas / Stop drawing current line / Cancel selection
Scroll Wheel In GTK+2/3 the user can have the scroll wheel zoom in or out via the Preferences window
Ctrl+Left button Choose colour A from under mouse pointer
Ctrl+Left button Clone tool - Select source
Ctrl+Middle button Create colour A/B and pattern based on the RGB colour in A (RGB images only)
Ctrl+Right button Choose colour B from under mouse pointer
Ctrl+Right button Polygon tool - Delete last point / Delete nearest point
Ctrl+Scroll Wheel Scroll the main edit window left or right
Ctrl+Double click Set colour A or B to average colour under brush square or selection marquee (RGB only)
Shift+Right button Selects the point which will be the centre of the image after the next zoom
You can fixate the X/Y co-ordinates while moving the mouse:
Shift Constrain mouse movements to vertical line
Shift+Ctrl Constrain mouse movements to horizontal line
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/Makefile 0000664 0000000 0000000 00000001300 14713254463 0022352 0 ustar 00root root 0000000 0000000 include ../_conf.txt
MAN_PAGE=mtpaint.1
all: $(MAN_PAGE)
$(MAN_PAGE): mtpaint.pod
pod2man "--release=$(MT_VERSION)" "--date=$(MT_DATE)" "--center=Mark Tyler's Painting Program" mtpaint.pod > $(MAN_PAGE)
html: vcode.html
%.html: %.t2t
txt2tags -t html $*.t2t
install:
mkdir -p $(DESTDIR)$(MT_MAN_DEST)/man1 $(DESTDIR)$(MT_DATAROOT)/applications $(DESTDIR)$(MT_DATAROOT)/pixmaps
cp $(MAN_PAGE) $(DESTDIR)$(MT_MAN_DEST)/man1
cp mtpaint.desktop $(DESTDIR)$(MT_DATAROOT)/applications
cp mtpaint.png $(DESTDIR)$(MT_DATAROOT)/pixmaps
uninstall:
rm $(DESTDIR)$(MT_MAN_DEST)/man1/$(MAN_PAGE)
rm $(DESTDIR)$(MT_DATAROOT)/applications/mtpaint.desktop
rm $(DESTDIR)$(MT_DATAROOT)/pixmaps/mtpaint.png
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/README 0000664 0000000 0000000 00000000676 14713254463 0021611 0 ustar 00root root 0000000 0000000 This directory contains the mtPaint man page.
Users of mtPaint should not need to edit or make anything here - just use the configure script as normal.
Package maintainers may wish to put their details into the man page for their users. Put these lines near the end of mtpaint.pod, just before the '=cut' at the end:
=head1 MAINTAINER
Your Name Eyour.name@email.addressE
Then from the command line:
./configure pod ...
make
etc.
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/alien-desc 0000664 0000000 0000000 00000000416 14713254463 0022650 0 ustar 00root root 0000000 0000000 mtPaint - Mark Tyler's Painting Program
mtPaint is a GTK+2 based painting program designed for creating icons and pixel based artwork. It can edit indexed palette or 24 bit RGB images and offers painting and palette manipulation tools.
http://mtpaint.sourceforge.net/
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/makehelp.pl 0000775 0000000 0000000 00000004754 14713254463 0023060 0 ustar 00root root 0000000 0000000 #! /usr/bin/perl
# Script to generate README, help.ccc & POD for mtPaint tarball, then HTML for website
# Written for Bash by Mark Tyler, 14-10-2004
# Rewritten in Perl by Dmitry Groshev, 20-04-2007
# New help.c file format implemented, 12-05-2007
# Stored source textfiles inline, 14-01-2009
# Pared down to generating only help.c with README & HELP as source, 07-02-2016
# ============================================================================
$HELP = <<"HELPFILE";
/* help.c
Copyright (C) 2004-$WHEN Mark Tyler and Dmitry Groshev
This file is part of mtPaint.
mtPaint is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
mtPaint is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with mtPaint in the file COPYING.
*/
#undef _
#define _(X) X
#define HELP_PAGE_COUNT $HELP_PAGE_COUNT
static char *help_titles[HELP_PAGE_COUNT] = {
$help_titles};
$help_pages
#define HELP_PAGE_MAX $HELP_PAGE_MAX
static char **help_pages[HELP_PAGE_COUNT] = {
$help_page_names
};
#undef _
#define _(X) __(X)
HELPFILE
INIT {
# Read in ../README
@parts = split /^---.*\n/m, `cat ../README`;
s/\n+$/\n/s foreach @parts;
for ($i = 0; $i < @parts; $i++)
{
last if $parts[$i] =~ /^Credits/;
}
$parts[1] =~ /2004-(\d{4})/ or die "Lost in time";
$WHEN = $1;
# Read in ./HELP
@help = split /^---.*\n/m, `cat ./HELP`;
s/\n+$/\n/s foreach @help;
# Generate help parts
@inf = ( "General\n\n" . $parts[1] . $parts[2],
$help[1] . $help[2],
$help[3] . $help[4],
$parts[$i] . $parts[$i + 1] );
s/\r//g foreach @inf; # To be sure
$HELP_PAGE_COUNT = @inf;
$i = 0;
foreach (@inf)
{
/^([^\n]*)/;
$help_titles .= "_(\"$1\"),\n";
$help_page_names .= "help_page$i, ";
$help_pages .= "static char *help_page$i\[] = {\n";
$i++;
s/([\\"])/\\$1/g; # Quote
s/\n(?=\n)/\\n/g;
@lines = split /\n/s;
shift @lines; # Drop header
$max = @lines unless $max > @lines;
$help_pages .= "_(\"$_\"),\n" foreach @lines;
$help_pages .= "NULL };\n";
}
$HELP_PAGE_MAX = $max + 1;
}
open HELP, ">help.c";
binmode HELP;
print HELP $HELP;
close HELP;
#`mv -f help.c ../src`;
#`chmod a-w ../src/help.c`;
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/mtpaint.1 0000664 0000000 0000000 00000013332 14713254463 0022460 0 ustar 00root root 0000000 0000000 .\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
. if \nF \{
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
.if t \{\
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
.if n \{\
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
.\}
.if t \{\
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
. \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "MTPAINT 1"
.TH MTPAINT 1 "2020-03-18" "mtPaint 3.49.26" "Mark Tyler's Painting Program"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
mtpaint \- A pixel based painting program
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
mtpaint\ [option]\ [imagefile\ ...\ ]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
mtPaint is a \s-1GTK+1/2/3\s0 based painting program designed for creating icons and pixel based artwork. It can edit indexed palette or 24 bit \s-1RGB\s0 images and offers painting and palette manipulation tools. Its main file format is \s-1PNG,\s0 although it can also handle \s-1JPEG, GIF, TIFF, JPEG2000, WEBP, BMP, PCX, TGA, LBM, PBM, PGM, PPM, PAM, LSS16, XPM,\s0 and \s-1XBM\s0 files. Due to its simplicity and lack of dependencies it runs well on GNU/Linux, Windows and older \s-1PC\s0 hardware. There is full documentation of mtPaint's features contained in a handbook. If you don't already have this, you can download it from the mtPaint website.
.SH "OPTIONS"
.IX Header "OPTIONS"
mtPaint can accept one of the following options:
.PP
.Vb 8
\& \-\-help Output usage information
\& \-\-version Output version information
\& \-\-flist Read a list of files from a file
\& \-\-sort Sort files passed as arguments
\& \-\-cmd Start mtPaint in commandline scripting mode without GUI
\& \-s Grab a screenshot
\& \-v Start mtPaint in viewer mode
\& \-\- End of options
.Ve
.SH "HOMEPAGE"
.IX Header "HOMEPAGE"
http://mtpaint.sourceforge.net/
.SH "AUTHOR"
.IX Header "AUTHOR"
Original author:
.IP "\(bu" 4
Mark Tyler
.PP
Current maintainer:
.IP "\(bu" 4
Dmitry Groshev \f(CW\*(C`\*(C'\fR
.PP
The development of mtPaint has been helped by various people from the free software community. See \*(L"Credits\*(R" in the \s-1README\s0 or the mtPaint help system for details.
.PP
You can follow or contribute to mtPaint's development at
.
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/mtpaint.desktop 0000664 0000000 0000000 00000001164 14713254463 0023771 0 ustar 00root root 0000000 0000000 [Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=mtPaint
GenericName=Image Editor
Comment=Painting program to create pixel art and manipulate digital photos
TryExec=mtpaint
Exec=mtpaint %F
Icon=mtpaint
Terminal=false
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
MimeType=image/bmp;image/x-bmp;image/x-ms-bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/x-pcx;image/png;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/svg;image/svg+xml;image/x-tga;image/tiff;image/xbm;image/x-xbm;image/x-xbitmap;image/xpm;image/x-xpm;image/x-xpixmap;
mtPaint-f37cf09c02b0ebd81d29c67be9741f54d76a9171/doc/mtpaint.png 0000664 0000000 0000000 00000002250 14713254463 0023101 0 ustar 00root root 0000000 0000000 ‰PNG
IHDR 0 0 Wù‡ 'PLTE ´ Ü ÿ2““ ÉÉ ÿÿ PPÿhˆÿ€¿ÿm’mž¹…ÕÕªLo[