Skip to content

Commit

Permalink
Improved close box in mapper configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Apr 3, 2010
1 parent 7f40db2 commit 5976063
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/mapper.lua
Expand Up @@ -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, "$<close_configure>",
Expand Down

0 comments on commit 5976063

Please sign in to comment.