Re: [Tuxpaint-dev] reentrancy, thread-safety, etc.

2004-11-26 Thread Bill Kendrick
On Fri, Nov 26, 2004 at 11:24:37AM -0500, Albert Cahalan wrote: Consider the code for drawing a stamp outline, and the code for responding to a stamp control button press. Can those run at the same time? Can one preempt the other one? Nope. Everything's event driven. Drawing the stamp

Re: [Tuxpaint-dev] reentrancy, thread-safety, etc.

2004-11-26 Thread Albert Cahalan
On Fri, 2004-11-26 at 17:31, Bill Kendrick wrote: On Fri, Nov 26, 2004 at 11:24:37AM -0500, Albert Cahalan wrote: I'd like to have the stamp controls set up a bitmap for the stamp outline renderer. I need to know if I must use an SDL surface with locking, or if I can use something

Re: [Tuxpaint-dev] reentrancy, thread-safety, etc.

2004-11-26 Thread Bill Kendrick
On Fri, Nov 26, 2004 at 06:30:21PM -0500, Albert Cahalan wrote: I was just preparing to cache the stamp outline. When the stamp changes (new choice, flip, mirror, or scaling), the outline needs to be recomputed. There's no need to be computing it every time the mouse moves a tiny bit. Yes,

Re: [Tuxpaint-dev] reentrancy, thread-safety, etc.

2004-11-26 Thread Albert Cahalan
On Fri, 2004-11-26 at 18:52, Bill Kendrick wrote: On Fri, Nov 26, 2004 at 06:30:21PM -0500, Albert Cahalan wrote: I was just preparing to cache the stamp outline. When the stamp changes (new choice, flip, mirror, or scaling), the outline needs to be recomputed. There's no need to be