Chiakie wrote:
> Dear all,
>
> I working under DirectFB-1.1.0 and window manager SaWMan-0.2.0
> When I create a window and set its opacity to 0xff, then the pixel
> format of my window surface will change to ARGB.
> Then I got a wrong screen output.
> I traced into the sawman_wm.c and print some information in it and
> re-compile it.
> I found that ...
>
> Line 811 in sawman_wm.c:
> config.flags = DLCONF_WIDTH | DLCONF_HEIGHT |
> DLCONF_PIXELFORMAT | DLCONF_OPTIONS | DLCONF_BUFFERMODE;
> config.width = single->src.w;
> config.height = single->src.h;
> config.pixelformat = surface->config.format;
> <------- I print it out, I got DSPF_ARGB, why?
> config.options = options;
> config.buffermode = DLBM_FRONTONLY;
>
> dfb_layer_context_set_configuration( tier->context,
> &config );
>
> dfb_layer_context_set_screenrectangle(
> tier->context, &rect );
>
> P.S. I didn't assign pixel format when I create the window.
>
> --
> Chien Kuo-Feng
>
If your window has DWCAPS_ALPHACHANNEL and no pixelformat was specified
during creation, then the format is automatically set to ARGB.
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev