Skip to content

Fix: pure vertical gradient rectangles have wrong color order

Jesse Pavel requested to merge jpavel1/grafX2:fix-vertical-gradient-rect into master

If a gradient rectangle has a pure vertical direction Draw_grad_rectangle() takes a special code path. It turns out that this path drew the gradient backwards (end-to-start, rather than start-to-end).

This patch fixes the order, so it behaves like horizontal and angled gradients.

Merge request reports

Loading