Re: [AD] new GUI focus selection algorithm

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


On Sun, 2003-11-30 at 10:02, Eric Botcazou wrote:
> > For example my program which made me think about the focusing at all:
> >
> >     Start
> >   Fullscreen
> >      End
> >
> > It will go up from Start to End, or down from End to Start, with the
> > wrapping. With just a penalty, it will jump to Fullscreen in both cases.
> > (The original code had negative distances, that's why it could just add
> > 0x10000 to achieve the wrapping.)
> 
> Ok, I have just totally overlooked the wrapping requirement until now :-)
> 
> And thinking a bit more about it, I now understand your proposition to use 
> the actual dimensions of the screen rather than the somewhat arbitrary 
> current wrapping value.
> 
> Revised patch attached.

Works for me. Btw, while testing I noticed, Shift-Tab doesn't seem to
work, since pckeys.c maps Tab and Shift-Tab both to '\t'. Or is this
different in windows?

-- 
Elias Pschernig <elias@xxxxxxxxxx>





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