ENH don't make point for semicircles

This commit is contained in:
Nathan Dwarshuis 2021-07-11 18:19:09 -04:00
parent a5af4f9200
commit 529cc3824c
4 changed files with 5 additions and 25 deletions

2
core

@ -1 +1 @@
Subproject commit db3924e25d98b942b4bc9fe81cb8bb8ada8a1fb1 Subproject commit 9e6e960796bd66bc050f2d111ecdab6c309a0874

View File

@ -218,12 +218,7 @@ end
M.initRing = function(x, y, r) M.initRing = function(x, y, r)
return _G_Widget_.Arc( return _G_Widget_.Arc(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(x, y, r, 0, 360),
_G_Widget_.make_point(x, y),
r,
0,
360
),
_G_Widget_.arc_style( _G_Widget_.arc_style(
2, 2,
_G_Patterns_.BORDER_FG _G_Patterns_.BORDER_FG

View File

@ -55,12 +55,7 @@ local DIAL_X = _G_INIT_DATA_.RIGHT_X + DIAL_RADIUS + _DIAL_THICKNESS_ / 2
local DIAL_Y = header.bottom_y + DIAL_RADIUS + _DIAL_THICKNESS_ / 2 local DIAL_Y = header.bottom_y + DIAL_RADIUS + _DIAL_THICKNESS_ / 2
local dial = _G_Widget_.Dial( local dial = _G_Widget_.Dial(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(DIAL_X, DIAL_Y, DIAL_RADIUS, 90, 360),
_G_Widget_.make_point(DIAL_X, DIAL_Y),
DIAL_RADIUS,
90,
360
),
_G_Widget_.arc_style( _G_Widget_.arc_style(
_DIAL_THICKNESS_, _DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_BG _G_Patterns_.INDICATOR_BG
@ -72,12 +67,7 @@ local dial = _G_Widget_.Dial(
) )
) )
local cache_arc = _G_Widget_.Arc( local cache_arc = _G_Widget_.Arc(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(DIAL_X, DIAL_Y, DIAL_RADIUS, 90, 360),
_G_Widget_.make_point(DIAL_X, DIAL_Y),
DIAL_RADIUS,
90,
360
),
_G_Widget_.arc_style( _G_Widget_.arc_style(
_DIAL_THICKNESS_, _DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_FG_SECONDARY _G_Patterns_.INDICATOR_FG_SECONDARY

View File

@ -57,12 +57,7 @@ local _create_core_ = function(cores, id, x, y)
cores[id +1] = { cores[id +1] = {
dials = _G_Widget_.CompoundDial( dials = _G_Widget_.CompoundDial(
_G_Widget_.make_semicircle( _G_Widget_.make_semicircle(x, y, _DIAL_OUTER_RADIUS_, 90, 360),
_G_Widget_.make_point(x, y),
_DIAL_OUTER_RADIUS_,
90,
360
),
_G_Widget_.arc_style( _G_Widget_.arc_style(
_DIAL_THICKNESS_, _DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_BG _G_Patterns_.INDICATOR_BG