mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Make non-mutating member functions const
This commit is contained in:
parent
a4836dec9a
commit
0b29f45f63
@ -204,7 +204,7 @@ bool CursorImpl::loadFromSystem(Cursor::Type type)
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
bool CursorImpl::isColorCursorSupported()
|
bool CursorImpl::isColorCursorSupported() const
|
||||||
{
|
{
|
||||||
return XcursorSupportsARGB(m_display.get());
|
return XcursorSupportsARGB(m_display.get());
|
||||||
}
|
}
|
||||||
|
@ -2080,7 +2080,7 @@ bool WindowImplX11::processEvent(XEvent& windowEvent)
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
bool WindowImplX11::checkXRandR()
|
bool WindowImplX11::checkXRandR() const
|
||||||
{
|
{
|
||||||
// Check if the XRandR extension is present
|
// Check if the XRandR extension is present
|
||||||
int version = 0;
|
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);
|
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;
|
Vector2i monitorPosition;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user