Nikita Egorov wrote:
> When I set a matrix via SetMatrix() I have strange results after call
> DrawLine().
> I have found that IDirectFBSurface_DrawLine() does incorrect switching
> to fill rectangle :
>
> if (x1 == x2 || y1 == y2) {
> ....
> dfb_gfxcard_fillrectangles(..)
> }
> else {
> ...
> dfb_gfxcard_drawlines(..)
> }
>
> It's wrong in case of using of matrix !
>
> To set a correct behavior I have changed line of file idriectfbsurface.c #1196
> from
> if (x1 == x2 || y1 == y2) {
> to
> if ((x1 == x2 || y1 == y2) && !data->state.render_options & DSRO_MATRIX)
> {
>
Thanks for the fix, please commit.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev