Re: [AD] Animation method dialog in demo cannot be cancelled with return key

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


On Sun, 2005-10-16 at 12:37 +0200, Grzegorz Adam Hankiewicz wrote:
> On 2005-10-16, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> > > In the demo if you select the cancel button with the keys in the
> > > animation method dialog and press return, the game keeps going,
> > 
> > Can you be more specific?
> 
> It's hardly to be more specific than that. In animsel.c put a printf
> of the ret variable before the return of pick_animation_type, at
> the end of the file.  That should display which button caused the
> dialog to exit.
> 
> Now, recompile the demo, run it, select whatever resolution. In the
> animation method dialog select the cancel button with the cursor
> keys, press return and you get a printf of 5. Shouldn't I get a 6?
> 

Oh, sorry, I didn't get at all what you meant :)

Your patch to gui.c should be applied in any case.

I'm not sure why the one to guiproc.c is needed though.

And I'd also like to simply remove the keyboard shortcut for ASCII 13
from the animsel dialog. You already can OK the dialog by hitting return
in the list, so that shortcut has no benefit.

-- 
Elias Pschernig





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