Hi,

Thanks for that tip - I'll try that tonight.

I'm rather puzzled by the fact that the primary layer isn't disappearing in my case. 
If I create a surface on the primary layer (setting it to format ARGB) and draw to it 
- e.g. using FillRectangle then my rectangle appears, and per pixel alpha blending 
works, with video displayed beneath.

The problem seems to occur only when using windows. If I create a window then it 
displays fine on screen. The window pixel format is ARGB. As soon as the call to 
GetDisplayLayer is made then the window disappears. I'm wondering therefore if there 
is something funny about the alpha channel. The code uses SetOpacity to determine 
whether to display the window, but I'm not sure if this has perhaps changed recently 
in the CLE266 driver.

I'll try your suggestion out. I still don't understand why the handling of windows is 
different. Can anyone help?

Thanks,

Colin

-----Original Message-----
From:   Selwyn Tang [mailto:[EMAIL PROTECTED]
Sent:   Mon 2/23/2004 2:43 AM
To:     [EMAIL PROTECTED]
Cc:     [EMAIL PROTECTED]
Subject:        Re: [directfb-dev] Window position problem (was CLE266 alpha blend )
Hi Colin,

On 02/21/04 23:25, Colin Paton wrote:
> However, windows don't work as soon as a call to  dfb->GetDisplayLayer() for
> display layer 1 (the video layer) is made - windows stop appearing.

I had a problem with calling GetDisplayLayer on layer 1 that the primary
layer just disappeared. But I found that after calling SetScreenLocation
on layer 1 gets my primary layer reappear. You may try and see if it
works for you, and please tell me your result, as I am still learning
the mechanism behind directfb.

Selwyn





--
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.

Reply via email to