gfx: Fix line drawing + symmetry tests
commit60ac88e1ae2150b7ab5836fa882141324a642a4b
authorCyril Hrubis <metan@ucw.cz>
Thu, 11 Jan 2018 17:44:03 +0000 (11 18:44 +0100)
committerCyril Hrubis <metan@ucw.cz>
Sat, 10 Feb 2018 11:54:30 +0000 (10 12:54 +0100)
treeb568642d59c288bbe7dfa1e54e97ba6ee3e6411b
parent7afea0007af1aed1fe11a4762703eecb15395516
gfx: Fix line drawing + symmetry tests

The Bresenham's line does not draw symetric line by default, if you want
line that is symmetrical when mirrored horizontally or vertically or
when rotated by multiples of 90 degrees you have to draw only half of
the line and draw second half symetrically to the line center.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
libs/gfx/GP_Line.gen.c.t
tests/gfx/.gitignore
tests/gfx/Line.c
tests/gfx/Makefile
tests/gfx/gfx_benchmark.c
tests/gfx/line_symmetry.gen.c.t [new file with mode: 0644]
tests/gfx/test_list.txt