Dear all,
When I try to create a window with SaWMan 0.2 under DirectFB-1.1.0, the part
of source codes follows,
/* Create a layer and set background image */
{
dfb->GetDisplayLayer(dfb, DLID_PRIMARY, &layer);
layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE);
// Set layer background color to be transparent for preventing white
mask on video layer.
layer->SetBackgroundColor(layer, 0x00, 0x00, 0x00, 0x00);
layer->SetBackgroundMode(layer, DLBM_COLOR);
}
/* Create a window and set related attributes */
{
DFBWindowDescription wdesc;
wdesc.flags = DWDESC_WIDTH | DWDESC_HEIGHT | DWDESC_POSX |
DWDESC_POSY | DWDESC_CAPS;
wdesc.width = disp_width;
wdesc.height = disp_height;
wdesc.posx = 0;
wdesc.posy = 0;
wdesc.caps = DWCAPS_ALPHACHANNEL;
int ret = layer->CreateWindow(layer, &wdesc, &window);
if(ret != DFB_OK)
printf("ERROR: Create window failed.\n");
window->SetOpacity(window, 0xff);
window->GetSurface(window, &wsurface);
wsurface->Clear(wsurface, 0x00, 0x00, 0x00, 0x00);
}
I've got the error message:
(!) SaWMan/WM: Cannot add window into unknown stack!
(!) Core/Windows: Failed to add window to manager!
--> Not supported!
P.S. My program is running on sh-architecture-based embedded device.
Someone can help me? Thanks.
--
Chien Kuo-Feng
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev