Hallo!

> No. This line can only work for 8BPP. As said, going down one pixel is done
> by

I meant with stride calculated like shown in the previous mail; anyway, I
know what you mean;

> Yes. This is intentional. If you start a GGI program outside X, you will
> have no mouse pointer at all. The reason we leave one pixel in X is, that
> it helps for your orientation with respect to leaving the program window.

Hm, would be a relief to have suport for the cursor in the library, as
this is something most of the developers would want to have but have to
code on their own each time;
 
> Yes, as this _requires_ Hardware support. We will soon provide an extension 
> that does this, but it will only work on cards that have hardware support 
> for it.

Ah. but there could be a software emulation for those cards that don't
provide it;

> >       if ( ggiEventRead( visual, &theEvent, emAll ) == 0 )
> >     {
> >       fail( "Error in reading new event!\n" );
> >     }
> 
> Um - why do you use emAll here ?

To get all pending events out of the queue; also those I'm not interested
in, they simply get thrown away; 

> Please use emPtrButton | emKeyPress like in
> the Poll call. The thing you have now will dequeue _any_ event that came in, 
> as soon as an event that matches the mask in the Poll-call comes in.

this is what I wont to have; why should I wont to have the queue fill up
constantly?
 
> No - the event mask is _advisory_. It will disable modules in the Poll-
> Sequence that deliver _none_ of the asked-for events. However the mouse does
> send both an interesting event (Buttons) and another one. 

Ah, I understand;
 
> Yes. This is correct for the code above. Use the correct Mask for the
> EventRead to filter out all the movement events.

But move events will fill up in the queue; 
So I'll get an overflow of the queue after some time?

> This is strange. You were drawing nothing ? Maybe your X server has no
> hardware cursor ?


No, nothing was drawn, only the cursor position was saved in two
variables;
Would make me wonder if there is no hardware cursor, because the Matrox
Millenium card is
one of the best suported cards in the X server.

gr. matthias

Reply via email to