Mail Archives: djgpp/1992/10/14/18:41:04
I've been having some trouble with the ati drivers which come with
djgpp. In short, I can't get into SVGA modes. I've posted the
problem before and the author of the driver has reproduced the
problem.
In any event, the problem goes away if I use the libgrx routines and
the ativga.grn driver. Everything works fine with one exception;
i.e., I can't seem to fully use the mouse in text mode. The relevant
code fragment (in GR_text_mode) is:
{
MouseEvent event;
MouseGetEvent(M_BUTTON_DOWN|M_POLL|M_MOTION|M_NOPAINT,&event);
}
which allows me to see if the mouse buttons are pressed, or if the
mouse is moved, without a mouse being drawn. If the mouse is moved,
I use the event.x and event.y entries.
With the original libgr and ati.grd driver, things work as I expected
(although I can't seem to adjust the mouse speed properly). With the
libgrx routines, the mouse buttons work, but I don't detect any mouse
motion. In graphics modes, I do similar things, and everything works
as expected (in all graphics modes).
In addition, I get an invalid driver error if I use the mouse in
GR_text_mode without first doing an explicit GR_set_mode. What am I
doing wrong?
David Ronis
- Raw text -