From 59760630ab1304b60af99d5f8f244b3f2e0a248d Mon Sep 17 00:00:00 2001 From: Nick Gammon Date: Sun, 4 Apr 2010 09:46:03 +1000 Subject: [PATCH] Improved close box in mapper configuration --- lua/mapper.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lua/mapper.lua b/lua/mapper.lua index 62f2c160..5ee93b82 100644 --- a/lua/mapper.lua +++ b/lua/mapper.lua @@ -469,14 +469,14 @@ local function draw_configuration () -- title WindowText (win, FONT_ID, "Configuration", x, y, 0, 0, 0x808080, true) + -- close box - WindowRectOp (win, 1, x + frame_width - box_size - GAP * 2, y + 1, x + frame_width - GAP * 2, y + 1 + box_size, 0x808080) - WindowRectOp (win, 2, - math.floor (x + frame_width - box_size - GAP * 2 + box_size / 3), - math.floor (y + 1 + box_size / 3), - math.ceil (x + frame_width - GAP * 2 - box_size / 3), - math.ceil (y + 1 + box_size - box_size / 3), - 0x808080) + WindowRectOp (win, 1, x + frame_width - box_size - GAP * 2, y + 1, + x + frame_width - GAP * 2, y + 1 + box_size, 0x808080) + WindowLine (win, x + frame_width - box_size - GAP * 2 + 3, y + 4, + x + frame_width - GAP * 2 - 3, y - 2 + box_size, 0x808080, 0, 1) + WindowLine (win, x - 4 + frame_width - GAP * 2, y + 4, + x - 1 + frame_width - box_size - GAP * 2 + 3, y - 2 + box_size, 0x808080, 0, 1) -- close configuration hotspot WindowAddHotspot(win, "$",