[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] Bug in SDL gfx backend module (?)
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] Bug in SDL gfx backend module (?) |
Date: |
Sat, 29 Dec 2007 19:33:51 +0100 |
On Dec 23, 2007 4:58 PM, Kai Sterker <address@hidden> wrote:
> Maybe it's not even a bug, just stupidity on my account. From looking
> at the problem with the word wrapping in v0.3, I've seen that drawing
> operations on surfaces are usually surrounded by a pair of
> lock()/unlock() method calls. I didn't do any of that and that might
> be the whole issue.
That's the problem. The draw_line() method uses put_pix() internally,
which requires the surface to be locked.
So I'll add the locking to that method, making it safer to use. Seems
to be a better alternative than forcing everybody calling that method
to do proper locking.
Kai