Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 22:16
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
mtpaint 3.44.89- October 2014
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 15 Posts_count   Goto page: Previous 1, 2, 3, 4, ..., 13, 14, 15 Next
Author Message
greengeek

Joined: 20 Jul 2010
Posts: 2594
Location: New Zealand

PostPosted: Wed 09 Oct 2013, 03:43    Post_subject:  

wjaguar wrote:
Preferences->Paths->Default palette
What do you do then? It has a "browse" button, but what should I be looking for?
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 280

PostPosted: Wed 09 Oct 2013, 07:37    Post_subject:  

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).
Back to top
View user's profile Send_private_message 
Dingo


Joined: 11 Dec 2007
Posts: 1422
Location: somewhere at the end of rainbow...

PostPosted: Wed 09 Oct 2013, 08:12    Post_subject:  

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
Back to top
View user's profile Send_private_message Visit_website 
wjaguar

Joined: 21 Jun 2006
Posts: 280

PostPosted: Wed 09 Oct 2013, 08:54    Post_subject:  

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. Smile
http://mtpaint.sourceforge.net/handbook/en_GB/chap_A.html#SEC64

Quote:
It is hardcoded?

Yes, in a rather unwieldy form (mem_pal_def[] array in memory.c)

Quote:
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. Smile

But then, for indexed images, you'll need a palette with color 255 being white - in mtPaint's default one, it is black instead.

Quote:
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.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Wed 23 Oct 2013, 15:54    Post_subject:  

mtpaint 3.44.30 compiled and available on first post

______________________________
Back to top
View user's profile Send_private_message 
darry1966

Joined: 26 Feb 2012
Posts: 475
Location: New Zealand

PostPosted: Sat 26 Oct 2013, 23:52    Post_subject:
Sub_title: Thank you
 

don570 wrote:
mtpaint 3.44.30 compiled and available on first post

______________________________


Thank you always for your work works well even in earlier Pups.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Wed 30 Oct 2013, 19:54    Post_subject:  

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

_______________________________________
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 280

PostPosted: Wed 27 Nov 2013, 03:03    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Wed 27 Nov 2013, 14:19    Post_subject:  

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.

______________________________________
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 280

PostPosted: Wed 27 Nov 2013, 19:33    Post_subject:  

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. Smile The attached patch fixes it.
mtpaint34434.patch.gz
Description 
gz

 Download 
Filename  mtpaint34434.patch.gz 
Filesize  325 Bytes 
Downloaded  188 Time(s) 
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Mon 02 Dec 2013, 20:30    Post_subject:  

New version 3.44.34

Fixes the problem with editing color palette!!

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

Code:

patch --input=/mnt/sdc1/mtpaint34434.patch  --directory=/root/mtPaint-master/src
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Sat 07 Dec 2013, 13:12    Post_subject:  

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???
____________________________________________________
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 280

PostPosted: Sat 07 Dec 2013, 16:18    Post_subject:  

don570 wrote:
VCODE,
which I believe is code that Microsoft donated to the Linux movement???

Do not badmouth my invention!!! Smile If I'd coded it like Microsofties do, mtPaint would already be larger than LibreOffice! Laughing
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.
Back to top
View user's profile Send_private_message 
don570


Joined: 10 Mar 2010
Posts: 3337
Location: Ontario

PostPosted: Mon 09 Dec 2013, 14:12    Post_subject:  

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.

_________________________________________________
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 280

PostPosted: Mon 09 Dec 2013, 15:32    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 15 Posts_count   Goto page: Previous 1, 2, 3, 4, ..., 13, 14, 15 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0915s ][ Queries: 13 (0.0107s) ][ GZIP on ]