From 0b29f45f63d6fe720d411e684688cf66f1ac0346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Thu, 26 Sep 2024 23:44:57 +0200 Subject: [PATCH] Make non-mutating member functions const --- src/SFML/Window/Unix/CursorImpl.cpp | 2 +- src/SFML/Window/Unix/WindowImplX11.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SFML/Window/Unix/CursorImpl.cpp b/src/SFML/Window/Unix/CursorImpl.cpp index 1cfcbf29c..8606c15c8 100644 --- a/src/SFML/Window/Unix/CursorImpl.cpp +++ b/src/SFML/Window/Unix/CursorImpl.cpp @@ -204,7 +204,7 @@ bool CursorImpl::loadFromSystem(Cursor::Type type) //////////////////////////////////////////////////////////// -bool CursorImpl::isColorCursorSupported() +bool CursorImpl::isColorCursorSupported() const { return XcursorSupportsARGB(m_display.get()); } diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index 05c587c21..576c59c58 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -2080,7 +2080,7 @@ bool WindowImplX11::processEvent(XEvent& windowEvent) //////////////////////////////////////////////////////////// -bool WindowImplX11::checkXRandR() +bool WindowImplX11::checkXRandR() const { // Check if the XRandR extension is present int version = 0; @@ -2095,7 +2095,7 @@ bool WindowImplX11::checkXRandR() //////////////////////////////////////////////////////////// -RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResources* res) +RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResources* res) const { const RROutput output = XRRGetOutputPrimary(m_display.get(), rootWindow); @@ -2108,7 +2108,7 @@ RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResource //////////////////////////////////////////////////////////// -Vector2i WindowImplX11::getPrimaryMonitorPosition() +Vector2i WindowImplX11::getPrimaryMonitorPosition() const { Vector2i monitorPosition;