nanogui: Thread: come back from VTSWITCH


[<<] [<] Page 1 of 1 [>] [>>]
Subject: come back from VTSWITCH
From: ####@####.#### ####@####.####
Date: 1 Dec 2006 16:46:40 +0000
Message-Id: <J9LT9K$BC7CCCF74A24B111BB15DC9F050302F1@libero.it>

Hi,

excuse me but i'm a newbie of nano-x, and maybe questions are simple for other members.

I have a problem with VTSWITCH.

I am running an application and where i try to switch to the busybox console and then return to nano-X display, i don't see all my objects that i previous drawn.

how can i capture the event of VTSWITCH and then save all my window ?

Thanks in advance.

Roberto Bielli  




------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada01dic06


Subject: Re: [nanogui] come back from VTSWITCH
From: "Greg Haerr" ####@####.####
Date: 6 Dec 2006 23:33:58 +0000
Message-Id: <06e601c7198e$fd660300$0300a8c0@RDP>

> I am running an application and where i try to switch to the busybox
console and then return to nano-X display, i don't see all my objects that i
previous drawn.

> how can i capture the event of VTSWITCH and then save all my window ?

There really isn't an easy mechanism for this.  FAR EASIER
would be to ensure that your application code catches
the EXPOSURE events that the server generates, and then
redraws everything.

A neat way to guarantee this is to NEVER have any code
draw anything other than in the EXPOSURE event
handling code.  When you need to draw something,
force an expose event using GrClearWindow(...,FALSE),
and draw it in the expose handler.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.