mtpaint 3.49.12- April 2016

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#16 Post by greengeek »

wjaguar wrote:Preferences->Paths->Default palette
What do you do then? It has a "browse" button, but what should I be looking for?

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#17 Post by wjaguar »

greengeek wrote:It has a "browse" button, but what should I be looking for?
Any file which has a palette in it. Either an indexed image in any supported format, or a palette file (such as written by Palette->Save).

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#18 Post by Dingo »

wjaguar wrote:
Dingo wrote:but it would be very useful if there is any way to change the default color in palette when mtpaint starts (red) to white
Preferences->Paths->Default palette
no way to made this change in sources before compiling? It is hardcoded? and change the default canvas from black to white? Sorry for disturbing with these question, for the rest Mtpaint is for me the most powerful swiss-knife for graphical tasks with its command-line counterpart libmtpixel that seems very worthy to be developed furtherly
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#19 Post by wjaguar »

Dingo wrote:no way to made this change in sources before compiling?
What for, if it can be configured in inifile?
You can use the global inifile for the purpose, if the user-specific one is, for some reason, not good enough. :-)
http://mtpaint.sourceforge.net/handbook ... html#SEC64
It is hardcoded?
Yes, in a rather unwieldy form (mem_pal_def[] array in memory.c)
and change the default canvas from black to white?
This line in src/channels.c:
unsigned char channel_fill[NUM_CHANNELS] = {0, 255, 0, 0};
Change the first 0 to 255. :-)

But then, for indexed images, you'll need a palette with color 255 being white - in mtPaint's default one, it is black instead.
its command-line counterpart libmtpixel that seems very worthy to be developed furtherly
With the code as it was, it was a dead-end project - too hard to maintain the GUI branch and the commandline branch in synch, and too extensive differences to merge them into one.
With the V-code, there will be hope of combining the two UIs in one program, but the entire GUI needs be switched to V-code first.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#20 Post by don570 »

mtpaint 3.44.30 compiled and available on first post

______________________________

darry1966

#21 Post by darry1966 »

don570 wrote:mtpaint 3.44.30 compiled and available on first post

______________________________
Thank you always for your work works well even in earlier Pups.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#22 Post by don570 »

I compile it in puppy 4.31 and it works in recent puppies.

_______________________________________

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#23 Post by wjaguar »

Warning - versions 3.44.31-3.44.33 have a bug which may cause crash when opening palette editor. Will be fixed in 3.44.34.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#24 Post by don570 »

to wjaguar:

I was able to save a color palette and then open it later in v 3.44.33.
No problems.

However I didn't try to edit the colors.

______________________________________

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#25 Post by wjaguar »

don570 wrote:However I didn't try to edit the colors.
And mtPaint could have crashed if you tried that.
It was reading a flag value from uninitialized pointer. Fixed in 3.44.34

P.S.: As it happened, part of bug got missed, so 3.44.34 is instead broken utterly and completely. :-) The attached patch fixes it.
Attachments
mtpaint34434.patch.gz
(325 Bytes) Downloaded 851 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#26 Post by don570 »

New version 3.44.34

Fixes the problem with editing color palette!!

I used patch after decompressing and doing a --dry-run

Code: Select all

patch --input=/mnt/sdc1/mtpaint34434.patch  --directory=/root/mtPaint-master/src

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#27 Post by don570 »

New version 3.44.36

Testing went well!!!

Dimitri is continuing to convert over to VCODE,
which I believe is code that Microsoft donated to the Linux movement???
____________________________________________________

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#28 Post by wjaguar »

don570 wrote:VCODE,
which I believe is code that Microsoft donated to the Linux movement???
Do not badmouth my invention!!! :-) If I'd coded it like Microsofties do, mtPaint would already be larger than LibreOffice! :lol:
It is "V-code" - because it is made of void pointers, like bytecode is of bytes.

The reason for it, is to separate the UI logic from the specifics of GUI toolkit. A V-code chunk describes the composition of a dialog in generic terms, and V-code interpreter then talks to GTK+ on its behalf, to draw widgets, control them, and read back the user input.
And independent of that, V-code is more concise in describing and controlling a GUI - each dialog rewritten in it makes mtPaint binary smaller.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#29 Post by don570 »

When I tried to compile in Fatdog linux (a 64bit linux distro available
here on this forum) the compiler gave me pointer errors. I was compiling
in fatdog.

The size was wrong ???? according to compiler.
Maybe compiler was referring to 32bits versus 64 bits.

_________________________________________________

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#30 Post by wjaguar »

don570 wrote:the compiler gave me pointer errors. I was compiling
in fatdog.
The size was wrong ???? according to compiler.
Maybe compiler was referring to 32bits versus 64 bits.
Since I lack the power of clairvoyance, I need the compiler's error message, exactly as it was, and not a vague description of what it maybe seemed like.

Something could certainly go wrong with all the pointer manipulations that V-code does. But I can neither find nor fix that, if not given any specifics.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#31 Post by greengeek »

On previous versions of mtPaint I can use 'free rotate' if I want to rotate a whole image but do not have the same option with just a portion (selection) of the image. Do any of the recent versions have the ability to free rotate a selection?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#32 Post by don570 »

Edit: both new and old versions of mtpaint support free rotate.
What is confusing is the menu that it is under. It is NOT under
'Selection' because it does not effect a selection. It is
under 'Image'


Unfortuately mtpaint rotates the entire document,
however mtpaint acts just on one layer. This has
the benefit of using less RAM but also some effects are
possible as well. For instance use the clipboard to place a
portion of your image in a layer above. (You can
save individual layers)

Now do the effect, like rotation, on the top layer.
Use the clipboard to tranfer a portion down to the original layer.
Delete the top layer if you wish.

__________________________________________________
Last edited by don570 on Thu 12 Dec 2013, 15:42, edited 1 time in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#33 Post by don570 »

I made a tutorial on how to make graph paper

http://www.murga-linux.com/puppy/viewtopic.php?t=90727

Image
______________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#34 Post by don570 »

New version 3.44.41 posted


_________________________________

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#35 Post by wjaguar »

don570 wrote:When I tried to compile in Fatdog linux (a 64bit linux distro available here on this forum) the compiler gave me pointer errors.
Tested compiling in there. Next time, please do differentiate warnings from errors. ;-)
Anyway, the next version will have that group of warnings disabled - for mtPaint code, they do not communicate anything of value.

Post Reply