doc: Fix a compiler warning.

The `gears.share.solid_rectangle_shadow` PR was written before the
warning was added.
This commit is contained in:
Emmanuel Lepage Vallee 2022-10-22 21:01:50 -07:00
parent 07590962e5
commit cc7feb932c
1 changed files with 1 additions and 0 deletions

View File

@ -778,6 +778,7 @@ end
-- @tparam number height The shape height -- @tparam number height The shape height
-- @tparam[opt=5] number x_offset The shadow area horizontal offset. -- @tparam[opt=5] number x_offset The shadow area horizontal offset.
-- @tparam[opt=5] number y_offset The shadow area vertical offset. -- @tparam[opt=5] number y_offset The shadow area vertical offset.
-- @noreturn
function module.solid_rectangle_shadow(cr, w, h, x_offset, y_offset) function module.solid_rectangle_shadow(cr, w, h, x_offset, y_offset)
x_offset, y_offset = x_offset or 5, y_offset or 5 x_offset, y_offset = x_offset or 5, y_offset or 5
w, h = w - math.abs(x_offset), h - math.abs(y_offset) w, h = w - math.abs(x_offset), h - math.abs(y_offset)