Re: [Tuxpaint-devel] new args in _init()?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: foo-script <foo...@o2...> - 2008-07-16 00:45:18
|
I just needed to alloc an array with it's size depending on canvas size. You idea of solution seems to be good. I'll try. Best, Adam Dnia 16 lipca 2008 2:42 Bill Kendrick <nb...@so...> napisał(a): > On Wed, Jul 16, 2008 at 12:40:48AM +0200, foo-script wrote: > > Could you add a pointer to canvas (or snapshot/last) surface to the tool_init() arguments list? > > It would be very helpful. > > > > That canvas doesn't really exist at that point. Tux Paint is still > starting up (all the user sees is the splash screen). > > You could do something like: > > * Set a global variable to 'false' at _init() > * If it's false at _switchin(), set it to 'true', and do the stuff > you need to do once and only once (but when a canvas is available) > > Out of curiosity, why did you need this? > > -- > -bill! > "Tux Paint" - free children's drawing software for Windows / Mac OS X / Linux! > Download it today! http://www.tuxpaint.org/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > |