On Thu, 25 Mar 1999 [EMAIL PROTECTED] wrote:
> Hi ,
> I am writing a application which involves using SVGA library . The
> problem is I have two processes the parent and the child ( which I create
> using fork() ) which have to access the screen . That is both the parent
> and child both should be able to draw on the screen . Is this possible .If
> so where do I call vga_setmode etc . Do I call in both the processes or
> only in the parent . IT IS PRETTY URGENT AND IT WILL BE KIND OF YOU IF YOU
> COULD MAIL IT BACK TO ME AS I AM NOT A MEMBER OF THIS LIST .
Due to the internal nature of svgalib, and principle constraints of
accessing a graphics card from user mode, you simply can NOT do this.
All graphics calls, be it drawing or setting of modes must be in a single
hand. There is no instance in linux that will manage several processes
accessing the screen at once. You'll have to write a foreground process
doing all the graphics and background processes sending it messages to
draw something. This is basically what X does too.
Michael.
--
Michael Weller: [EMAIL PROTECTED], [EMAIL PROTECTED],
or even [EMAIL PROTECTED] If you encounter an eowmob account on
any machine in the net, it's very likely it's me.