MCPcopy Create free account
hub / github.com/SFML/SFML / checkXRandR

Method checkXRandR

src/SFML/Window/Unix/WindowImplX11.cpp:2211–2222  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

2209
2210////////////////////////////////////////////////////////////
2211bool WindowImplX11::checkXRandR()
2212{
2213 // Check if the XRandR extension is present
2214 int version = 0;
2215 if (!XQueryExtension(m_display.get(), "RANDR", &version, &version, &version))
2216 {
2217 err() << "XRandR extension is not supported" << std::endl;
2218 return false;
2219 }
2220
2221 return true;
2222}
2223
2224
2225////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected