--- src/core/CoreGraphicsStateClient.c | 5 +---- src/core/CoreGraphicsState_real.cpp | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/core/CoreGraphicsStateClient.c b/src/core/CoreGraphicsStateClient.c index 06d0846..92c1a5f 100644 --- a/src/core/CoreGraphicsStateClient.c +++ b/src/core/CoreGraphicsStateClient.c @@ -516,12 +516,9 @@ CoreGraphicsStateClient_StretchBlit( CoreGraphicsStateClient *client, if (num == 0) return DFB_OK; - if (num != 1) - D_UNIMPLEMENTED(); - if (dfb_core_is_master( client->core ) || !fusion_config->secure_fusion) { // FIXME: will overwrite rects - dfb_gfxcard_stretchblit( (DFBRectangle*) srects, (DFBRectangle*) drects, client->state ); + dfb_gfxcard_batchstretchblit( (DFBRectangle*) srects, (DFBRectangle*) drects, num, client->state ); } else { DFBResult ret; diff --git a/src/core/CoreGraphicsState_real.cpp b/src/core/CoreGraphicsState_real.cpp index be520a6..697076f 100644 --- a/src/core/CoreGraphicsState_real.cpp +++ b/src/core/CoreGraphicsState_real.cpp @@ -967,8 +967,7 @@ IGraphicsState_Real::StretchBlit( } } else { - for (u32 i=0; i<num; i++) - dfb_gfxcard_stretchblit( (DFBRectangle*) &srects[i], (DFBRectangle*) &drects[i], &obj->state ); + dfb_gfxcard_batchstretchblit( (DFBRectangle*) srects, (DFBRectangle*) drects, num, &obj->state ); } return DFB_OK; -- 1.7.5.4 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev