REF use box in rect and fillrect

This commit is contained in:
Nathan Dwarshuis 2021-07-10 00:22:02 -04:00
parent a96dd545c8
commit 2965bae338
2 changed files with 11 additions and 9 deletions

2
core

@ -1 +1 @@
Subproject commit 6ed168732ff88826ee58ae2729703b9d12c2fb77 Subproject commit f59ee91926fc9b51cb664712127c87dde43500fd

View File

@ -516,14 +516,16 @@ end
-- panel -- panel
M.initPanel = function(x, y, w, h) M.initPanel = function(x, y, w, h)
return _G_Widget_.FillRect{ return _G_Widget_.FillRect(
x = x + 0.5, _G_Widget_.make_box(
y = y + 0.5, _G_Widget_.make_point(x + 0.5, y + 0.5),
width = w, w,
height = h, h
line_pattern = _G_Patterns_.BORDER_FG, ),
fill_pattern = _G_Patterns_.PANEL_BG, 1,
} _G_Patterns_.BORDER_FG,
_G_Patterns_.PANEL_BG
)
end end
return M return M