Add tests for sf::VideoMode::getDesktopMode

This commit is contained in:
Chris Thrasher 2024-12-12 15:35:18 -07:00
parent b112409e67
commit e762c4b14e
No known key found for this signature in database
GPG Key ID: 56FB686C9DFC8E2C

View File

@ -40,6 +40,13 @@ TEST_CASE("[Window] sf::VideoMode", runDisplayTests())
}
}
SECTION("getDesktopMode()")
{
const auto desktopMode = sf::VideoMode::getDesktopMode();
CHECK(desktopMode.size != sf::Vector2u());
CHECK(desktopMode.bitsPerPixel != 0);
}
SECTION("getFullscreenModes()")
{
const auto& modes = sf::VideoMode::getFullscreenModes();