Fix outdated use of the sf::VideoMode constructor

This commit is contained in:
Christian Ivicevic 2022-11-22 14:55:52 +01:00 committed by GitHub
parent 1d4db22d62
commit a9f33999dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 11 deletions

View File

@ -27,7 +27,7 @@ Tell us how to reproduce this issue. Please provide a [minimal, complete and ver
int main()
{
sf::RenderWindow window(sf::VideoMode(1280, 720), "Minimal, complete and verifiable example");
sf::RenderWindow window(sf::VideoMode({1280, 720}), "Minimal, complete and verifiable example");
window.setFramerateLimit(60);
while (window.isOpen())

View File

@ -32,7 +32,7 @@ Describe how to best test these changes. Please provide a [minimal, complete and
int main()
{
sf::RenderWindow window(sf::VideoMode(1280, 720), "Minimal, complete and verifiable example");
sf::RenderWindow window(sf::VideoMode({1280, 720}), "Minimal, complete and verifiable example");
window.setFramerateLimit(60);
while (window.isOpen())

View File

@ -18,7 +18,7 @@
/// int main()
/// {
/// // Create the main window
/// sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
/// sf::RenderWindow window(sf::VideoMode({800, 600}), "SFML window");
///
/// // Load a sprite to display
/// sf::Texture texture;

View File

@ -258,7 +258,7 @@ private:
///
/// \code
/// // Create a new render-window
/// sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
/// sf::RenderWindow window(sf::VideoMode({800, 600}), "SFML window");
///
/// // Create a new render-texture
/// sf::RenderTexture texture;

View File

@ -195,7 +195,7 @@ private:
///
/// \code
/// // Declare and create a new render-window
/// sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
/// sf::RenderWindow window(sf::VideoMode({800, 600}), "SFML window");
///
/// // Limit the framerate to 60 frames per second (this step is optional)
/// window.setFramerateLimit(60);
@ -230,7 +230,7 @@ private:
///
/// \code
/// // Create the render window
/// sf::RenderWindow window(sf::VideoMode(800, 600), "SFML OpenGL");
/// sf::RenderWindow window(sf::VideoMode({800, 600}), "SFML OpenGL");
///
/// // Create a sprite and a text to display
/// sf::Sprite sprite;

View File

@ -222,7 +222,7 @@ SFML_WINDOW_API bool operator>=(const VideoMode& left, const VideoMode& right);
///
/// // Create a window with the same pixel depth as the desktop
/// sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
/// window.create(sf::VideoMode(1024, 768, desktop.bitsPerPixel), "SFML window");
/// window.create(sf::VideoMode({1024, 768}, desktop.bitsPerPixel), "SFML window");
/// \endcode
///
////////////////////////////////////////////////////////////

View File

@ -329,7 +329,7 @@ private:
/// Usage example:
/// \code
/// // Declare and create a new window
/// sf::Window window(sf::VideoMode(800, 600), "SFML window");
/// sf::Window window(sf::VideoMode({800, 600}), "SFML window");
///
/// // Limit the framerate to 60 frames per second (this step is optional)
/// window.setFramerateLimit(60);

View File

@ -508,7 +508,7 @@ private:
/// Usage example:
/// \code
/// // Declare and create a new window
/// sf::WindowBase window(sf::VideoMode(800, 600), "SFML window");
/// sf::WindowBase window(sf::VideoMode({800, 600}), "SFML window");
///
/// // The main loop - ends as soon as the window is closed
/// while (window.isOpen())

View File

@ -23,7 +23,7 @@
int main(int, char const**)
{
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
sf::RenderWindow window(sf::VideoMode({800, 600}), "SFML window");
// Set the Icon
sf::Image icon;

View File

@ -21,7 +21,7 @@
int main(int argc, char const** argv)
{
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
sf::RenderWindow window(sf::VideoMode({800, 600}), "SFML window");
// Set the Icon
sf::Image icon;