starter images

View: New views
6 Messages — Rating Filter:   Alert me  

starter images

by Chion Jacques :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

when i try to load a new image (clicking on New), i cannot load an image
with a plain colour (white, blue, etc..).
Has somebody seen the same problem ?
(with starters with drawings, it works).
Of course i am speaking about the CVS version, no problems with the
official version.

Regards

Jacques



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel

Re: starter images

by Bill Kendrick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 20, 2009 at 05:54:08PM +0200, Chion Jacques wrote:
> Hello,
>
> when i try to load a new image (clicking on New), i cannot load an image
> with a plain colour (white, blue, etc..).
> Has somebody seen the same problem ?
> (with starters with drawings, it works).
> Of course i am speaking about the CVS version, no problems with the
> official version.

I think you need to use the new Templates system.  (Put the file in
a 'templates' folder, rather than 'starters')

-bill!

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel

Re: starter images

by Chion Jacques :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bill Kendrick a écrit :

> On Tue, Oct 20, 2009 at 05:54:08PM +0200, Chion Jacques wrote:
>> Hello,
>>
>> when i try to load a new image (clicking on New), i cannot load an image
>> with a plain colour (white, blue, etc..).
>> Has somebody seen the same problem ?
>> (with starters with drawings, it works).
>> Of course i am speaking about the CVS version, no problems with the
>> official version.
>
> I think you need to use the new Templates system.  (Put the file in
> a 'templates' folder, rather than 'starters')
>

Sorry, i am not enough clear..
I am speaking about opening a new image to start a new drawing.
With the plain colors, i have the message :

.............
Warning: Couldn't load the saved image!
(null)/(null)(null)
The Simple DirectMedia Layer error that occurred was:
Couldn't open (null)/(null)(null)

.............

when i try to open an image with a single color.

Jacques



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel

Re: starter images

by Pere Pujal i Carabantes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

El dt 20 de 10 de 2009 a les 20:25 +0200, en/na Chion Jacques va
escriure:

> Bill Kendrick a écrit :
> > On Tue, Oct 20, 2009 at 05:54:08PM +0200, Chion Jacques wrote:
> >> Hello,
> >>
> >> when i try to load a new image (clicking on New), i cannot load an image
> >> with a plain colour (white, blue, etc..).
> >> Has somebody seen the same problem ?
> >> (with starters with drawings, it works).
> >> Of course i am speaking about the CVS version, no problems with the
> >> official version.
> >
> > I think you need to use the new Templates system.  (Put the file in
> > a 'templates' folder, rather than 'starters')
> >
>
> Sorry, i am not enough clear..
> I am speaking about opening a new image to start a new drawing.
> With the plain colors, i have the message :
>
> .............
> Warning: Couldn't load the saved image!
> (null)/(null)(null)
> The Simple DirectMedia Layer error that occurred was:
> Couldn't open (null)/(null)(null)
>
> .............
>
> when i try to open an image with a single color.
>

I've found this issue yesterday, if you don't have any template,
first_template will be -1 and the check at about line 19900(*) will run
the code to open a template, then crashing as there is none.

Changing the check from
else if (which >= first_template)
to
 else if (first_template != -1 && which >= first_template)
seems to fix the problem.

I have not commited since I currently have my copy of CVS somewhat
messy.

(*) Not sure about the exact number of the line, but it is very close to
19900.

Pere


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel

Re: starter images

by Bill Kendrick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


OOPS! :)  Ok, thanks!  I'm out of town at a conference, so won't be able
to fix it until tomorrow at the soonest, I think.  (If anyone catches it
and can fix and commit to CVS, feel free ;) )

-bill!

On Tue, Oct 20, 2009 at 10:01:39PM +0200, Pere Pujal i Carabantes wrote:
> >
> > Sorry, i am not enough clear..
> > I am speaking about opening a new image to start a new drawing.
> > With the plain colors, i have the message :
<snip>
> I've found this issue yesterday, if you don't have any template,
> first_template will be -1 and the check at about line 19900(*) will run
> the code to open a template, then crashing as there is none.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel

Re: starter images

by Chion Jacques :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>
>
> OOPS! :) Ok, thanks! I'm out of town at a conference, so won't be able
> to fix it until tomorrow at the soonest, I think. (If anyone catches it
> and can fix and commit to CVS, feel free ;) )
>
> -bill!
>

It works !
so i have made the modification and commited it.
Many thanks Pere !


Jacques



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tuxpaint-devel mailing list
Tuxpaint-devel@...
https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel