static DFBResult primarySetRegion( CoreLayer *layer, void *driver_data, void *layer_data, void *region_data, CoreLayerRegionConfig *config, CoreLayerRegionConfigFlags updated, CoreSurface *surface, CorePalette *palette, CoreSurfaceBufferLock *lock ) { DFBResult ret; DFBX11 *x11 = driver_data; X11LayerData *lds = layer_data; D_DEBUG_AT( X11_Layer, "%s()\n", __FUNCTION__ ); if (x11->shared->x_error) return DFB_FAILURE; ret = dfb_x11_create_window( x11, lds, config ); if (ret) return ret; if (palette) dfb_x11_set_palette( x11, lds, palette ); return DFB_OK; }
static DFBResult primarySetRegion( CoreLayer *layer, void *driver_data, void *layer_data, void *region_data, CoreLayerRegionConfig *config, CoreLayerRegionConfigFlags updated, CoreSurface *surface, CorePalette *palette, CoreSurfaceBufferLock *lock ) { DFBResult ret; DFBX11 *x11 = driver_data; ret = dfb_x11_create_window( x11, config ); if (ret) return ret; if (palette) dfb_x11_set_palette( x11, palette ); return DFB_OK; }