nanogui: Thread: video pages


[<<] [<] Page 1 of 1 [>] [>>]
Subject: video pages
From: Atul Kulkarni ####@####.####
Date: 1 Jun 2006 13:48:12 +0100
Message-Id: <1149169936.6423.26.camel@localhost.localdomain>

Hi all,
 
      I have hardware which supports concept much like video pages. I
have successfully ported nano-X to it and is working very fine. Now I
have to add concept of video pages to my driver. From application layer
the user will be given an  interface (say GrSelectVideoPage or so )  so
that he can switch between video pages. 
      I believe it will require to change the parameters in PSD struct
(i.e. scrdev) passed to (framebuffer) driver init (such as psd->addr
psd->size etc) function during initialisation when user requests to
switch the video page.

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?

Thanks in advance.

Regards,

Atul K.






***********************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.

************************************************************************ 

Subject: Re: [nanogui] video pages
From: "Greg Haerr" ####@####.####
Date: 5 Jun 2006 21:25:49 +0100
Message-Id: <021001c688de$370d3ed0$0300a8c0@RDP>

: 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
Subject: Re: [nanogui] video pages
From: Atul Kulkarni ####@####.####
Date: 6 Jun 2006 10:58:41 +0100
Message-Id: <1149591771.3189.24.camel@localhost.localdomain>

Hi,
 
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.

************************************************************************ 

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.
:
: ************************************************************************
:
:
:

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


Powered by ezmlm-browse 0.20.