Set the I-beam cursor's hotspot properly

Otherwise it's a bit awkward to use and the selection ends up in the
wrong place.
This commit is contained in:
Iris Morelle 2019-11-13 00:39:08 -03:00
parent 5fc6360488
commit c31047af47

View File

@ -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 },
@ -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 },