nanogui: Newbie problems
Subject:
Re: Re: Newbie problems
From:
Manuel Teira Paz ####@####.####
Date:
22 Jan 2000 15:02:56 -0000
Message-Id: <Pine.GSO.4.21.0001221534330.836-100000@hades>
On Fri, 21 Jan 2000, Greg Haerr wrote:
> Yeah, I think it's your driver. Instead of returning 3, why don't you return
> 2 and include the old mouse coordinates. I think that will work. It seems
> that we might have a fix required in the mid level when a driver returns 3:
> it should use the old x,y values and probably isn't. I'll check into this,
> but you can probably get fixed by returning 2.
>
> Regards,
>
> Greg
OK, I'm trying today that change. Anyway, I've found some things using
your ideas:
I've been tracing the behaviour of the little example I've written both in
X11 environment and the PDA. The key of the question is clipping (as you
wisely said :-o ), when the Desktop window gets the WM_PAINT event, the
GdFillRect calls GdClipArea and it returns CLIP_VISIBLE in the PDA
version, therefore in X11 version, it reaches the drawrow section of
GdClipRect (this is the right way) . I've been trying to understand all
the clipping related code, but I've got blind about it. Have you any idea?
The other missfunction is that when a window is dragged around the screen,
the shapes that are drawn around the screen aren't cleared. I'll try to
explain: in X11 version, only one shape at a time is present; in the PDA
version, there are a lot of shapes of the screen at a time, and they are
only cleared when the pen is released, and everything is cleared because
of the last paragraph stuff.
One more time, thanks a lot.
Best regards.