chiark / gitweb /
draw_thick_line: Bound thickness by 1.0 below
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 28 Sep 2017 23:20:49 +0000 (00:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Sep 2017 12:50:38 +0000 (13:50 +0100)
commitb5a5298a9d30720d2c8ffd7453d460791d19071d
tree15a969a3099f77ac861526675380a49930865be5
parent4bc8db348bd7850b57dff7b60ef10e443d9836bc
draw_thick_line: Bound thickness by 1.0 below

A line less than 1 pixel wide may not be visible.  So if a backend
wants to draw a line whose width scaled by the window size, that line
thickness ought to be at least 1.0.

That way if the scale is small, but still big enough that there is a
straightforward interpretation of the drawing primitives which is
legible, we implement that interpretation.

If a frontend draws a narrower line, making it wider might cause
drawing anomalies, due to the line now having a bigger bounding box.
These anomalies should occur only at small scales where currently the
display is not legible, and we should fix them as we notice them.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
devel.but
drawing.c