From 3c348599dc63356bfe79a66d86ab97e869ab19d4 Mon Sep 17 00:00:00 2001 From: Pandagrapher Date: Mon, 19 Dec 2022 20:16:02 +0100 Subject: [PATCH] Fixes incorrect cursor center position --- rtgui/cursormanager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/cursormanager.cc b/rtgui/cursormanager.cc index f683e9964..30649d707 100644 --- a/rtgui/cursormanager.cc +++ b/rtgui/cursormanager.cc @@ -41,8 +41,8 @@ void CursorManager::init (Glib::RefPtr mainWindow) auto cursor_surf = RTSurface(name, Gtk::ICON_SIZE_MENU); auto cursor = Gdk::Cursor::create(this->display, cursor_surf.get(), - cursor_surf.getWidth() / 2, - cursor_surf.getHeight() / 2); + cursor_surf.getWidth(), + cursor_surf.getHeight()); if (!cursor) { cursor = Gdk::Cursor::create(this->display, fb_cursor);