nanogui: GrCheckNextEvent Modifications?


Previous by date: 26 Jan 2000 19:36:48 -0000 Microwindows 0.87pre5 released, Greg Haerr
Next by date: 26 Jan 2000 19:36:48 -0000 Hello, daflynn.liberate.com
Previous in thread: 26 Jan 2000 19:36:48 -0000 Re: GrCheckNextEvent Modifications?, Greg Haerr
Next in thread:

Subject: Re: GrCheckNextEvent Modifications?
From: "Greg Haerr" ####@####.####
Date: 26 Jan 2000 19:36:48 -0000
Message-Id: <053d01bf6833$37bb3620$15320cd0@gregh>

: Between Pre2 and Pre4 have any modifications been made to the way
: GrMainLoop & GrCheckNextEvent - Code that worked fine (and still does)
: when linked against Pre2 (example below) ceases to function when linked
: against Pre4.
: 
: If the #if is set to 1 then the code functions partially then dies with
: a GrRead error.  I was just wondering if there was any changes that
: could effect the way my code is working....

I can't get the code to fail in nterm.c with the #if 1.

I do get a problem with #if 0 in nterm.c, but it can be
fixed with changing GrCheckNextEvent to GrGetNextEvent.
I will look into this.

Also, you might want to look at the client.c code for
GrMainLoop, and unroll it instead of using just GrCheckNextEvent.
Specifically, thats what GrPrepareSelect is for.

In any event, yes, there seems to be a bug with GrCheckNextEvent,
and I'll have to look into it.

Greg


: 
: Interesting enough, nterm.c gets the same problems (the read error) when
: compiled against Pre4, and that uses GrMainLoop, IIRC.
: 
: ----[ code snip ]----
: #if 0
:    GrMainLoop(HandleEvent);
: #else
:    while(1) {
:       GR_EVENT ev;
: 
: /* cycle_poll(main_loop)    */
:       GrCheckNextEvent(&ev);
:       HandleEvent(&ev);
:    }
: #endif
: ----[ end code snip ]----
: 



Previous by date: 26 Jan 2000 19:36:48 -0000 Microwindows 0.87pre5 released, Greg Haerr
Next by date: 26 Jan 2000 19:36:48 -0000 Hello, daflynn.liberate.com
Previous in thread: 26 Jan 2000 19:36:48 -0000 Re: GrCheckNextEvent Modifications?, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.