Skip to content

Commit

Permalink
Set the I-beam cursor's hotspot properly
Browse files Browse the repository at this point in the history
Otherwise it's a bit awkward to use and the selection ends up in the
wrong place.
  • Loading branch information
irydacea committed Nov 13, 2019
1 parent 5fc6360 commit c31047a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cursor.cpp
Expand Up @@ -55,7 +55,7 @@ std::array<cursor_data, cursor::NUM_CURSORS> available_cursors {{
#ifdef __APPLE__
{ nullptr, boost::indeterminate, "normal.png", "normal.png", 0, 0 },
{ nullptr, boost::indeterminate, "wait-alt.png", "wait.png", 0, 0 },
{ nullptr, boost::indeterminate, "ibeam.png", "ibeam.png", 0, 0 },
{ nullptr, boost::indeterminate, "ibeam.png", "ibeam.png", 14, 14 },
{ nullptr, boost::indeterminate, "move.png", "move.png", 0, 0 },
{ nullptr, boost::indeterminate, "attack.png", "attack.png", 0, 0 },
{ nullptr, boost::indeterminate, "select.png", "select.png", 0, 0 },
Expand All @@ -65,7 +65,7 @@ std::array<cursor_data, cursor::NUM_CURSORS> available_cursors {{
#else
{ nullptr, boost::indeterminate, "normal.png", "normal.png", 0, 0 },
{ nullptr, boost::indeterminate, "wait.png", "wait.png", 0, 0 },
{ nullptr, boost::indeterminate, "ibeam.png", "ibeam.png", 0, 0 },
{ nullptr, boost::indeterminate, "ibeam.png", "ibeam.png", 14, 14 },
{ nullptr, boost::indeterminate, "move.png", "move.png", 0, 0 },
{ nullptr, boost::indeterminate, "attack.png", "attack.png", 0, 0 },
{ nullptr, boost::indeterminate, "select.png", "select.png", 0, 0 },
Expand Down

0 comments on commit c31047a

Please sign in to comment.