Re: [AD] [LNX] Mode-X and threads and mouse

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> A segfault occurs under Linux console when using mode-X and the mouse
> and the mouse pointer is visible and threads are in use.  The problem
> is that input is now handled in a thread, so when the mouse moves we
> end up calling mode-X drawing from that thread.

Not rather from the timer thread ?

> Can someone take a look at modexgfx.s?  In particular, the functions
> that need to be usable in this situation are _x_draw_sprite,
> _x_blit_from_memory, _x_blit_to_memory.  As confirmation, no segfault
> occurs if those three functions are made to return directly or aren't
> called (from mouse.c:~203).

The problem comes from selecting the Mode-X planes in the asm code,
specifically lines 773, 899 and 1631 in src/misc/modexgfx.s: if they are
commented out, there is no more segfault.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/