mirror of
https://github.com/SFML/SFML.git
synced 2025-02-23 14:56:02 +08:00
Add tests for sf::VideoMode::getDesktopMode
This commit is contained in:
parent
b112409e67
commit
e762c4b14e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user