Claudio Ciccani wrote: > 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 );
This is the automatic layer reconfiguration where the layer is configured to match the single window that is displayed. Updates are just blits from the window to the layer surface then. Windows can have any source and destination rectangle including scaling and these attributes are applied on the layer. >> >> 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. Or the format of the layer if it has alpha, e.g. ARGB4444. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
