This patch contains the rest of the XFree86 DGA2 driver and some small changes in xwininp.c the handle fullscreen mode. 8bpp modes now work. The input also works, even if switching from "graphics" to "text" mode and vice versa, or executing one GRX application from another. In the last case, caller must switch to "text" mode before exec (it's a normal practice, demogrx does it). Warning: any attempt to read from stdin while in "graphics" mode blocks the application. This is a bad practice IMHO, so I will, unless there are any objections, replace such reads with GrKeyRead()-s.
Dimitar Zhekov wrote:
This patch contains the rest of the XFree86 DGA2 driver and some small changes in xwininp.c the handle fullscreen mode. 8bpp modes now work. The input also works, even if switching from "graphics" to "text" mode and vice versa, or executing one GRX application from another. In the last case, caller must switch to "text" mode before exec (it's a normal practice, demogrx does it). Warning: any attempt to read from stdin while in "graphics" mode blocks the application. This is a bad practice IMHO, so I will, unless there are any objections, replace such reads with GrKeyRead()-s.
I have some programs that do terminal (via ncurses) and GRX I/O at the same time (under X11, in two windows -- xterm and GRX). I don't see a bad practice in this. Would this break with those changes?
Frank