Re: [Tuxpaint-devel] new args in _init()?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2008-07-16 00:42:30
|
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/
|