From c31047af4723c76dcfb3561d77a3d6c211c2994c Mon Sep 17 00:00:00 2001 From: Iris Morelle Date: Wed, 13 Nov 2019 00:39:08 -0300 Subject: [PATCH] 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. --- src/cursor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cursor.cpp b/src/cursor.cpp index a0ae8af4d6f5..bfb819b5863d 100644 --- a/src/cursor.cpp +++ b/src/cursor.cpp @@ -55,7 +55,7 @@ std::array 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 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 },