DFBResult CoreGraphicsStateClient_DrawLines( CoreGraphicsStateClient *client, const DFBRegion *lines, unsigned int num ) { D_DEBUG_AT( Core_GraphicsStateClient, "%s( client %p )\n", __FUNCTION__, client ); D_MAGIC_ASSERT( client, CoreGraphicsStateClient ); D_ASSERT( lines != NULL ); if (!dfb_config->call_nodirect && (dfb_core_is_master( client->core ) || !fusion_config->secure_fusion)) { // FIXME: will overwrite lines dfb_gfxcard_drawlines( (DFBRegion*) lines, num, client->state ); } else { DFBResult ret; CoreGraphicsStateClient_Update( client, DFXL_DRAWLINE, client->state ); ret = CoreGraphicsState_DrawLines( client->gfx_state, lines, num ); if (ret) return ret; } return DFB_OK; }
DFBResult IGraphicsState_Real__DrawLines( CoreGraphicsState *obj, const DFBRegion *lines, u32 num ) { D_DEBUG_AT( DirectFB_CoreGraphicsState, "%s()\n", __FUNCTION__ ); if (!obj->state.destination) return DFB_NOCONTEXT; dfb_gfxcard_drawlines( (DFBRegion*) lines, num, &obj->state ); return DFB_OK; }