Fixes incorrect cursor center position

This commit is contained in:
Pandagrapher 2022-12-19 20:16:02 +01:00
parent 1a4de65f46
commit 3c348599dc

View File

@ -41,8 +41,8 @@ void CursorManager::init (Glib::RefPtr<Gdk::Window> mainWindow)
auto cursor_surf = RTSurface(name, Gtk::ICON_SIZE_MENU); auto cursor_surf = RTSurface(name, Gtk::ICON_SIZE_MENU);
auto cursor = Gdk::Cursor::create(this->display, auto cursor = Gdk::Cursor::create(this->display,
cursor_surf.get(), cursor_surf.get(),
cursor_surf.getWidth() / 2, cursor_surf.getWidth(),
cursor_surf.getHeight() / 2); cursor_surf.getHeight());
if (!cursor) { if (!cursor) {
cursor = Gdk::Cursor::create(this->display, fb_cursor); cursor = Gdk::Cursor::create(this->display, fb_cursor);