Skip to content

Commit 23d3c46

Browse files
authored
Fix drawing for the circle glyph (#121)
... it was offset by 1/2 drawing unit (pixel), effectively drawing a small ellipse. While this was not noticeable in itself, it made all symbols which had a circle, such as `oasterisk` `odot` `oplus` `otimes`, appear as if the symbol was off-center.
1 parent 9854f16 commit 23d3c46

File tree

121 files changed

+1
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+1
-1
lines changed

plot-lib/plot/private/common/plot-device.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
(define/private ((make-draw-circle-glyph r) v)
446446
(when (vrational? v)
447447
(match-define (vector x y) v)
448-
(send dc draw-ellipse (- x r -1/2) (- y r -1/2) (* 2 r) (* 2 r))))
448+
(send dc draw-ellipse (- x r) (- y r) (* 2 r) (* 2 r))))
449449

450450
(: make-draw-polygon-glyph (-> Nonnegative-Real Natural Real (-> (Vectorof Real) Void)))
451451
(define/private (make-draw-polygon-glyph r sides start-angle)
-3 Bytes
Binary file not shown.
1.23 KB
-2 Bytes
Binary file not shown.
827 Bytes
-3 Bytes
Binary file not shown.
729 Bytes
-10 Bytes
Binary file not shown.
30 Bytes
-5 Bytes
Binary file not shown.
5.87 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-9 Bytes
Binary file not shown.
1.33 KB
-11 Bytes
Binary file not shown.
1.37 KB
-12 Bytes
Binary file not shown.
1.6 KB
-10 Bytes
Binary file not shown.
2.03 KB
-9 Bytes
Binary file not shown.
1.28 KB
-3 Bytes
Binary file not shown.
2.06 KB
-13 Bytes
Binary file not shown.
1.51 KB
-7 Bytes
Binary file not shown.
1.7 KB
-9 Bytes
Binary file not shown.
1.28 KB
-13 Bytes
Binary file not shown.
2.37 KB
-28 Bytes
Binary file not shown.
1.83 KB
-5 Bytes
Binary file not shown.
2.32 KB
0 Bytes
Binary file not shown.
2.39 KB
-5 Bytes
Binary file not shown.
2.4 KB
3 Bytes
Binary file not shown.
882 Bytes
-14 Bytes
Binary file not shown.
1.74 KB
2.06 KB
2 Bytes
Binary file not shown.
6.39 KB
-1 Bytes
Binary file not shown.
39 Bytes
Binary file not shown.
1.31 KB
0 Bytes
Binary file not shown.
1.89 KB
-1 Bytes
Binary file not shown.
-2.04 KB
-1 Bytes
Binary file not shown.
2.79 KB
2 Bytes
Binary file not shown.
1.65 KB
-3 Bytes
Binary file not shown.
1.49 KB
-2 Bytes
Binary file not shown.
2.77 KB
0 Bytes
Binary file not shown.
2.19 KB
1 Byte
Binary file not shown.
2.33 KB
-10 Bytes
Binary file not shown.
6.88 KB
18 Bytes
Binary file not shown.
17.6 KB
-2 Bytes
Binary file not shown.
1.72 KB
-1 Bytes
Binary file not shown.
-483 Bytes
-2 Bytes
Binary file not shown.
1.72 KB
7 Bytes
Binary file not shown.
1.87 KB
5 Bytes
Binary file not shown.
3.88 KB
3 Bytes
Binary file not shown.
4.81 KB
1 Byte
Binary file not shown.
1.98 KB
-5 Bytes
Binary file not shown.
3.1 KB
5 Bytes
Binary file not shown.
3.83 KB
1 Byte
Binary file not shown.
-1.87 KB
-18 Bytes
Binary file not shown.
8.21 KB
-1 Bytes
Binary file not shown.
1.74 KB

0 commit comments

Comments
 (0)