nanogui: video pages


Previous by date: 7 Jun 2006 04:19:11 +0100 Nano-X, nxlib, FLTK and 1bpp, Mikael Huolman
Next by date: 7 Jun 2006 04:19:11 +0100 Re: true type font, Greg Haerr
Previous in thread: 7 Jun 2006 04:19:11 +0100 Re: video pages, Atul Kulkarni
Next in thread:

Subject: Re: [nanogui] video pages
From: "Greg Haerr" ####@####.####
Date: 7 Jun 2006 04:19:11 +0100
Message-Id: <015c01c689e1$1ff625f0$6401a8c0@winXP>

Without getting into your code in detail, I suggest the following
thoughts: the EXPOSURE events won't change based
on whether you change a screen address or not, since
none of the system knows about it.  Likewise, any new
screen memory newly displayed won't have been previously
cleared to the root window's background color.  So, whenever
you switch screens, you'll likely have to GrClearArea the
root window to force exposure events.  Another way
would be to map a window on top of the entire root
window, then unmap it, which would cause the same
redraw.

Regards,

Greg


: Just by changing the address it draws correctly to the desired page. But
: what happens is that when I switch through the pages one page is always
: displaying garbage.
: The root window is drawn to one (video) page during initialization (ie
: GrOpen) and another window for testing is also drawn on the same page
: (with root as parent). I have created another window(with parent as
: root) and tried mapping it to another video page, but the window is not
: drawn...though the code for the drawing window is executed
: (GrMapWindow).  Note that I have three windows including root one.
:
: I am expecting to receive two EXPOSURE events one for each newly created
: window but I am getting one only...though I have selected it for both
: windows.
:
: If I change the sequence in which two windows are mapped always second
: window receives the EXPOSURE event.
:
: Will you please help me knowing what could be the reason for this...?
:
: Thanks in advance.
:
: Regards,
: Atul K.
:
: On Mon, 2006-06-05 at 14:25 -0600, Greg Haerr wrote:
: > : My question is that, will only updating of "scrdev" global variable to
: > : adopt to new addr, size and color scheme etc will do the job or some
: > : other additional initialization are also needed to happen before it
: > : (nano-X) starts using the new video page?
: >
: >
: > If only psd->addr changes, you should be fine.  If psd->size
: > changes, then there could be a number of issues, including
: > recalculating all clip rectangles for the screen, to be considered.
: > Generally changing the size of the displayed area isn't currently
: > considered by any code, and many changes may be required.
: > Same for the color scheme.
: >
: > Regards,
: >
: > Greg
: >
: > ---------------------------------------------------------------------
: > To unsubscribe, e-mail: ####@####.####
: > For additional commands, e-mail: ####@####.####
:
:
: ***********************Confidentiality Notice***************************
:
:  The information contained in this electronic message and any attachments
: to this message are intended for the exclusive use of the addressee(s)
: and may contain confidential or privileged information. If you are not
: the intended recipient, please notify the sender at Divinet or
: ####@####.####  immediately and destroy all copies of this
: message and any attachments.
:
: ************************************************************************
:
:
:


Previous by date: 7 Jun 2006 04:19:11 +0100 Nano-X, nxlib, FLTK and 1bpp, Mikael Huolman
Next by date: 7 Jun 2006 04:19:11 +0100 Re: true type font, Greg Haerr
Previous in thread: 7 Jun 2006 04:19:11 +0100 Re: video pages, Atul Kulkarni
Next in thread:


Powered by ezmlm-browse 0.20.