INNER CODE UNIT · C++

p

Xrysnow/LuaSTG-x · frameworks/Classes/WindowHelper.cpp:357

	const auto p = view->getMonitor();
	return MonitorHelperDesktop::getOrCreate(p);
#else
	return nullptr;
#endif
}

#ifdef CC_PLATFORM_PC

bool MonitorHelperDesktop::isValid()
{
	int count = 0;
	const auto arr = glfwGetMonitors(&count);
	for (int i = 0; i < count; ++i)
	{
		if (arr[i] == handle)
			return true;
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…