DFBResult CoreGraphicsStateClient_FillSpans( CoreGraphicsStateClient *client, int y, const DFBSpan *spans, unsigned int num ) { D_DEBUG_AT( Core_GraphicsStateClient, "%s( client %p )\n", __FUNCTION__, client ); D_MAGIC_ASSERT( client, CoreGraphicsStateClient ); D_ASSERT( spans != NULL ); if (!dfb_config->call_nodirect && (dfb_core_is_master( client->core ) || !fusion_config->secure_fusion)) { // FIXME: may overwrite spans dfb_gfxcard_fillspans( y, (DFBSpan*) spans, num, client->state ); } else { DFBResult ret; CoreGraphicsStateClient_Update( client, DFXL_FILLRECTANGLE, client->state ); ret = CoreGraphicsState_FillSpans( client->gfx_state, y, spans, num ); if (ret) return ret; } return DFB_OK; }
DFBResult IGraphicsState_Real__FillSpans( CoreGraphicsState *obj, s32 y, const DFBSpan *spans, u32 num ) { D_DEBUG_AT( DirectFB_CoreGraphicsState, "%s()\n", __FUNCTION__ ); if (!obj->state.destination) return DFB_NOCONTEXT; dfb_gfxcard_fillspans( y, (DFBSpan*) spans, num, &obj->state ); return DFB_OK; }