From 585365f5bbffae93eac3f1a4ba476aa0cab3f95d Mon Sep 17 00:00:00 2001 From: an2qzavok Date: Sat, 22 Oct 2022 16:23:51 +0000 Subject: plot: fix disc and circle operations Discs and circles were drawn on screen directly and later erased by offscreen buffer. This change puts them in line with other operations, which draw to offscreen first and to screen when necessary --- sys/src/cmd/plot/libplot/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/plot/libplot/disk.c') diff --git a/sys/src/cmd/plot/libplot/disk.c b/sys/src/cmd/plot/libplot/disk.c index 47b39012b..4221d9c90 100644 --- a/sys/src/cmd/plot/libplot/disk.c +++ b/sys/src/cmd/plot/libplot/disk.c @@ -8,5 +8,5 @@ void plotdisc(double xc, double yc, double r){ rad=SCR(-r); else rad=SCR(r); - fillellipse(screen, p, rad, rad, getcolor(e1->foregr), ZP); + m_disc(p, rad, e1->foregr); } -- cgit v1.2.3