REF use box in rect and fillrect
This commit is contained in:
parent
a96dd545c8
commit
2965bae338
2
core
2
core
|
@ -1 +1 @@
|
|||
Subproject commit 6ed168732ff88826ee58ae2729703b9d12c2fb77
|
||||
Subproject commit f59ee91926fc9b51cb664712127c87dde43500fd
|
|
@ -516,14 +516,16 @@ end
|
|||
-- panel
|
||||
|
||||
M.initPanel = function(x, y, w, h)
|
||||
return _G_Widget_.FillRect{
|
||||
x = x + 0.5,
|
||||
y = y + 0.5,
|
||||
width = w,
|
||||
height = h,
|
||||
line_pattern = _G_Patterns_.BORDER_FG,
|
||||
fill_pattern = _G_Patterns_.PANEL_BG,
|
||||
}
|
||||
return _G_Widget_.FillRect(
|
||||
_G_Widget_.make_box(
|
||||
_G_Widget_.make_point(x + 0.5, y + 0.5),
|
||||
w,
|
||||
h
|
||||
),
|
||||
1,
|
||||
_G_Patterns_.BORDER_FG,
|
||||
_G_Patterns_.PANEL_BG
|
||||
)
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Reference in New Issue