Waldemar Schultz escribió:
>
> What about installing the file grx*.inf to $DJDIR/info/grx.inf ?
> so one can type 'info grx' to get started.
OK, but some aditional thing is needed to add it to the main menu, do you know what
is it? (sorry my knowledge about info is very low)
>
> A very unimportant remark:
> the date of 'last updte' in the 242 manual was _not_ updted,
> might confuse somebody.
Opps!, I forgot it.
>
> And a suggestion for cleardevice():
> BCCGRX clears the screen to BLACK,
> whilst BGI clears it to the current BACKGROUND color, AFAIK.
> I suggest to change this for compatibility:
>
> void __gr_cleardevice(void) {
> _DO_INIT_CHECK;
> GrResetClipBox(); //why twice?
> //wsz GrFilledBox( 0, 0+PY, getmaxx(), getmaxy()+PY, BLACK);
> __gr_Reset_ClipBox(); //why twice?
> GrClearScreen(__gr_colorbg); //wsz
> moveto( 0, 0);
> }
>
I'm not sure (I don't use and don't know well bccgrx), but I think we have discuss
this some time ago and Harmuth said GrFilledBox is necesary to simulate screen
pages. But the issue, can be fixed changing BLACK to __gr_colorbg?
>
> At last a personal question:
> from grx242um.inf:
> "Note that GrMouseInit set both by default. If you want to use
> GrMouseGetEvent and GrKeyRead at the same time, a call to
> GrMouseEventEnable( 0,1 ) is needed before input process."
>
> Q:does that mean to use keybord _only_ in the polling loop?
>
> See the *note mousetst.c:: example.
>
> Q:mousetst.c does not use GrMouseEventEnable() nor GrKeRead().
>
> still confused, sorry.
I will try to explain. If you don't use the mouse you can use GrKeyRead safety. If
you use GrMouseGetEvent to get keyboard and mouse event, it's ok too. But if you
want to get keyboard inpunt by GrKeyRead and mouse input by GrMouseGetEvent you
must call GrMouseEventEnable( 0,1 ). Why? Because if not GrMouseEvent consumes the
keyboard inputs and GrKeyRead works erratically. Why to use both functions at the
same time?. Well, it can be to easy port a program to GRX (like my parchis game) or
because the program defines a interface with separate functions (like the DEPUI
gui).
Mariano.