From 4579bdb2f81201150daea9511ff11ed4e320fbc0 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Fri, 9 Jul 2021 22:53:03 -0400 Subject: [PATCH] REF use semicircle for arc --- core | 2 +- drawing/Common.lua | 11 ++++++----- drawing/Memory.lua | 15 ++++++++------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/core b/core index 63598c9..bc8a454 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 63598c9257f2272808a98c6192276b18a9981ac9 +Subproject commit bc8a4548e536c4a46e78712cfe6c578e85ab694b diff --git a/drawing/Common.lua b/drawing/Common.lua index 3cf6605..06f675a 100644 --- a/drawing/Common.lua +++ b/drawing/Common.lua @@ -246,11 +246,12 @@ M.initRing = function(x, y, r) -- arc_pattern = _G_Patterns_.BORDER_FG -- } return _G_Widget_.Arc( - x, - y, - r, - 0, - 360, + _G_Widget_.make_semicircle( + _G_Widget_.make_point(x, y), + r, + 0, + 360 + ), 2, _G_Patterns_.BORDER_FG ) diff --git a/drawing/Memory.lua b/drawing/Memory.lua index 1f5eb12..3b8a0b0 100644 --- a/drawing/Memory.lua +++ b/drawing/Memory.lua @@ -84,13 +84,14 @@ local dial = _G_Widget_.Dial( -- arc_pattern = _G_Patterns_.INDICATOR_FG_SECONDARY -- } local cache_arc = _G_Widget_.Arc( - DIAL_X, - DIAL_Y, - DIAL_RADIUS, - 90, - 360, - _DIAL_THICKNESS_, - _G_Patterns_.INDICATOR_FG_SECONDARY + _G_Widget_.make_semicircle( + _G_Widget_.make_point(DIAL_X, DIAL_Y), + DIAL_RADIUS, + 90, + 360 + ), + _DIAL_THICKNESS_, + _G_Patterns_.INDICATOR_FG_SECONDARY ) local text_ring = Common.initTextRing(