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/
|