Skip to content

Commit b85a0d9

Browse files
aidinioactionless
authored andcommitted
Fix the issues and redundancies
1 parent c685b6d commit b85a0d9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/gears/shape.lua

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,22 +318,18 @@ function module.partially_rounded_rect(cr, width, height, tl, tr, br, bl, rad)
318318
end
319319

320320
--- A rounded rect with individually defined corner radii.
321-
--
322-
-- @DOC_gears_shape_individually_rounded_rect_EXAMPLE@
323-
--
324321
-- @param cr A cairo context
325322
-- @tparam number width The shape width
326323
-- @tparam number height The shape height
327-
-- @tparam boolean tl The top left corner's radius
328-
-- @tparam boolean tr The top right corner's radius
329-
-- @tparam boolean br The bottom right corner's radius
330-
-- @tparam boolean bl The bottom left corner's radius
324+
-- @tparam number tl The top left corner's radius
325+
-- @tparam number tr The top right corner's radius
326+
-- @tparam number br The bottom right corner's radius
327+
-- @tparam number bl The bottom left corner's radius
331328
-- @noreturn
332329
-- @staticfct gears.shape.individually_rounded_rect
333330
function module.individually_rounded_rect(cr, width, height, tl, tr, br, bl)
334331
local corners = {tl = tl, tr = tr, br = br, bl = bl}
335332
for key, val in pairs(corners) do
336-
corners[key] = val or 10
337333
if width / 2 < val then
338334
corners[key] = width / 2
339335
end

0 commit comments

Comments
 (0)