From 45810a134505f9d21d58f35f30d05d44c4a3db59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Tue, 18 Nov 2014 01:02:07 +0100 Subject: [PATCH] Fixed additional comments and documention spelling mistakes. --- cmake/Macros.cmake | 2 +- cmake/Modules/FindSFML.cmake | 2 +- examples/cocoa/NSString+stdstring.mm | 2 +- include/SFML/Audio/SoundRecorder.hpp | 14 +++++++------- include/SFML/Audio/SoundSource.hpp | 2 +- include/SFML/Audio/SoundStream.hpp | 6 +++--- include/SFML/Graphics/Color.hpp | 2 +- include/SFML/Graphics/Glyph.hpp | 2 +- include/SFML/Graphics/Image.hpp | 6 +++--- include/SFML/Graphics/PrimitiveType.hpp | 2 +- include/SFML/Graphics/Rect.hpp | 2 +- include/SFML/Graphics/RenderStates.hpp | 2 +- include/SFML/Graphics/RenderTarget.hpp | 6 +++--- include/SFML/Graphics/RenderWindow.hpp | 2 +- include/SFML/Graphics/Shape.hpp | 4 ++-- include/SFML/Graphics/Sprite.hpp | 2 +- include/SFML/Graphics/Text.hpp | 2 +- include/SFML/Graphics/Texture.hpp | 12 ++++++------ include/SFML/Graphics/VertexArray.hpp | 4 ++-- include/SFML/Network/Ftp.hpp | 2 +- include/SFML/Network/Http.hpp | 8 ++++---- include/SFML/Network/Packet.hpp | 8 ++++---- include/SFML/Network/SocketSelector.hpp | 2 +- include/SFML/Network/TcpSocket.hpp | 2 +- include/SFML/Network/UdpSocket.hpp | 2 +- include/SFML/System.hpp | 2 +- include/SFML/System/Lock.hpp | 2 +- include/SFML/System/NonCopyable.hpp | 4 ++-- include/SFML/System/ThreadLocal.hpp | 2 +- include/SFML/System/ThreadLocalPtr.hpp | 2 +- include/SFML/System/Utf.inl | 4 ++-- include/SFML/System/Vector2.hpp | 2 +- include/SFML/System/Vector3.hpp | 2 +- include/SFML/Window/Context.hpp | 2 +- include/SFML/Window/Event.hpp | 2 +- include/SFML/Window/Joystick.hpp | 4 ++-- include/SFML/Window/Sensor.hpp | 2 +- include/SFML/Window/Touch.hpp | 2 +- include/SFML/Window/VideoMode.hpp | 2 +- include/SFML/Window/Window.hpp | 6 +++--- src/SFML/Audio/SoundStream.cpp | 6 +++--- src/SFML/Graphics/Font.cpp | 8 ++++---- src/SFML/Graphics/ImageLoader.cpp | 2 +- src/SFML/Graphics/Shader.cpp | 2 +- src/SFML/Main/MainAndroid.cpp | 6 +++--- src/SFML/Main/SFMLActivity.cpp | 2 +- src/SFML/Network/IpAddress.cpp | 4 ++-- src/SFML/Network/Socket.cpp | 2 +- src/SFML/Network/TcpSocket.cpp | 2 +- src/SFML/System/Err.cpp | 2 +- src/SFML/System/String.cpp | 2 +- src/SFML/System/Unix/ClockImpl.hpp | 2 +- src/SFML/System/Unix/MutexImpl.cpp | 2 +- src/SFML/System/Unix/ThreadImpl.cpp | 2 +- src/SFML/System/Win32/ClockImpl.hpp | 2 +- src/SFML/Window/Android/SensorImpl.cpp | 2 +- src/SFML/Window/Android/WindowImplAndroid.cpp | 16 ++++++++-------- src/SFML/Window/Android/WindowImplAndroid.hpp | 6 +++--- src/SFML/Window/EGLCheck.cpp | 2 +- src/SFML/Window/EglContext.cpp | 8 ++++---- src/SFML/Window/FreeBSD/JoystickImpl.cpp | 2 +- src/SFML/Window/GlContext.hpp | 2 +- src/SFML/Window/OSX/HIDInputManager.mm | 6 +++--- src/SFML/Window/OSX/JoystickImpl.hpp | 2 +- src/SFML/Window/OSX/SFApplication.h | 2 +- src/SFML/Window/OSX/SFOpenGLView.mm | 6 +++--- src/SFML/Window/OSX/SFWindowController.mm | 2 +- src/SFML/Window/Unix/WindowImplX11.cpp | 2 +- src/SFML/Window/Unix/WindowImplX11.hpp | 6 +++--- src/SFML/Window/Win32/JoystickImpl.cpp | 2 +- src/SFML/Window/Window.cpp | 2 +- src/SFML/Window/WindowImpl.hpp | 4 ++-- src/SFML/Window/iOS/SFAppDelegate.mm | 2 +- 73 files changed, 130 insertions(+), 130 deletions(-) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 01a1f1da8..ccb9b4dd0 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -59,7 +59,7 @@ macro(sfml_add_library target) endif() # if using gcc >= 4.0 or clang >= 3.0 on a non-Windows platform, we must hide public symbols by default - # (exported ones are explicitely marked) + # (exported ones are explicitly marked) if(NOT SFML_OS_WINDOWS AND ((SFML_COMPILER_GCC AND NOT SFML_GCC_VERSION VERSION_LESS "4") OR (SFML_COMPILER_CLANG AND NOT SFML_CLANG_VERSION VERSION_LESS "3"))) set_target_properties(${target} PROPERTIES COMPILE_FLAGS -fvisibility=hidden) endif() diff --git a/cmake/Modules/FindSFML.cmake b/cmake/Modules/FindSFML.cmake index 03df46077..2594bda51 100644 --- a/cmake/Modules/FindSFML.cmake +++ b/cmake/Modules/FindSFML.cmake @@ -10,7 +10,7 @@ # find_package(SFML COMPONENTS graphics window system) // find the graphics, window and system modules # # You can enforce a specific version, either MAJOR.MINOR or only MAJOR. -# If nothing is specified, the version won't be checked (ie. any version will be accepted). +# If nothing is specified, the version won't be checked (i.e. any version will be accepted). # example: # find_package(SFML COMPONENTS ...) // no specific version required # find_package(SFML 2 COMPONENTS ...) // any 2.x version diff --git a/examples/cocoa/NSString+stdstring.mm b/examples/cocoa/NSString+stdstring.mm index 2b4ae043d..f39e05cc2 100644 --- a/examples/cocoa/NSString+stdstring.mm +++ b/examples/cocoa/NSString+stdstring.mm @@ -64,7 +64,7 @@ -(std::wstring)tostdwstring { - // According to wikipedia, Mac OS X is Little Endian on x86 and x86-64 + // According to Wikipedia, Mac OS X is Little Endian on x86 and x86-64 // http://en.wikipedia.org/wiki/Endianness NSData* asData = [self dataUsingEncoding:NSUTF32LittleEndianStringEncoding]; return std::wstring((wchar_t*)[asData bytes], [asData length] / sizeof(wchar_t)); diff --git a/include/SFML/Audio/SoundRecorder.hpp b/include/SFML/Audio/SoundRecorder.hpp index 59a3030af..733fd322b 100644 --- a/include/SFML/Audio/SoundRecorder.hpp +++ b/include/SFML/Audio/SoundRecorder.hpp @@ -96,10 +96,10 @@ public: unsigned int getSampleRate() const; //////////////////////////////////////////////////////////// - /// \brief Get a list of the names of all availabe audio capture devices + /// \brief Get a list of the names of all available audio capture devices /// /// This function returns a vector of strings, containing - /// the names of all availabe audio capture devices. + /// the names of all available audio capture devices. /// /// \return A vector of strings containing the names /// @@ -187,7 +187,7 @@ protected: //////////////////////////////////////////////////////////// /// \brief Start capturing audio data /// - /// This virtual function may be overriden by a derived class + /// This virtual function may be overridden by a derived class /// if something has to be done every time a new capture /// starts. If not, this function can be ignored; the default /// implementation does nothing. @@ -216,7 +216,7 @@ protected: //////////////////////////////////////////////////////////// /// \brief Stop capturing audio data /// - /// This virtual function may be overriden by a derived class + /// This virtual function may be overridden by a derived class /// if something has to be done every time the capture /// ends. If not, this function can be ignored; the default /// implementation does nothing. @@ -285,7 +285,7 @@ private: /// A derived class has only one virtual function to override: /// \li onProcessSamples provides the new chunks of audio samples while the capture happens /// -/// Moreover, two additionnal virtual functions can be overriden +/// Moreover, two additional virtual functions can be overridden /// as well if necessary: /// \li onStart is called before the capture happens, to perform custom initializations /// \li onStop is called after the capture ends, to perform custom cleanup @@ -303,9 +303,9 @@ private: /// /// If you have multiple sound input devices connected to your /// computer (for example: microphone, external soundcard, webcam mic, ...) -/// you can get a list of all available devices throught the +/// you can get a list of all available devices through the /// getAvailableDevices() function. You can then select a device -/// by calling setDevice() with the appropiate device. Otherwise +/// by calling setDevice() with the appropriate device. Otherwise /// the default capturing device will be used. /// /// It is important to note that the audio capture happens in a diff --git a/include/SFML/Audio/SoundSource.hpp b/include/SFML/Audio/SoundSource.hpp index 8660dd268..c0edd5029 100644 --- a/include/SFML/Audio/SoundSource.hpp +++ b/include/SFML/Audio/SoundSource.hpp @@ -244,7 +244,7 @@ protected: //////////////////////////////////////////////////////////// /// \brief Default constructor /// - /// This constructor is meant ot be called by derived classes only. + /// This constructor is meant to be called by derived classes only. /// //////////////////////////////////////////////////////////// SoundSource(); diff --git a/include/SFML/Audio/SoundStream.hpp b/include/SFML/Audio/SoundStream.hpp index 24120f2d3..e79d879b6 100644 --- a/include/SFML/Audio/SoundStream.hpp +++ b/include/SFML/Audio/SoundStream.hpp @@ -207,7 +207,7 @@ protected: //////////////////////////////////////////////////////////// /// \brief Request a new chunk of audio samples from the stream source /// - /// This function must be overriden by derived classes to provide + /// This function must be overridden by derived classes to provide /// the audio samples to play. It is called continuously by the /// streaming loop, in a separate thread. /// The source can choose to stop the streaming loop at any time, by @@ -226,7 +226,7 @@ protected: //////////////////////////////////////////////////////////// /// \brief Change the current playing position in the stream source /// - /// This function must be overriden by derived classes to + /// This function must be overridden by derived classes to /// allow random seeking into the stream source. /// /// \param timeOffset New playing position, relative to the beginning of the stream @@ -313,7 +313,7 @@ private: /// Unlike audio buffers (see sf::SoundBuffer), audio streams /// are never completely loaded in memory. Instead, the audio /// data is acquired continuously while the stream is playing. -/// This behaviour allows to play a sound with no loading delay, +/// This behavior allows to play a sound with no loading delay, /// and keeps the memory consumption very low. /// /// Sound sources that need to be streamed are usually big files diff --git a/include/SFML/Graphics/Color.hpp b/include/SFML/Graphics/Color.hpp index fd3b9c5a9..8c81e3cef 100644 --- a/include/SFML/Graphics/Color.hpp +++ b/include/SFML/Graphics/Color.hpp @@ -34,7 +34,7 @@ namespace sf { //////////////////////////////////////////////////////////// -/// \brief Utility class for manpulating RGBA colors +/// \brief Utility class for manipulating RGBA colors /// //////////////////////////////////////////////////////////// class SFML_GRAPHICS_API Color diff --git a/include/SFML/Graphics/Glyph.hpp b/include/SFML/Graphics/Glyph.hpp index cdd683541..bdc3357ef 100644 --- a/include/SFML/Graphics/Glyph.hpp +++ b/include/SFML/Graphics/Glyph.hpp @@ -51,7 +51,7 @@ public: //////////////////////////////////////////////////////////// // Member data //////////////////////////////////////////////////////////// - float advance; ///< Offset to move horizontically to the next character + float advance; ///< Offset to move horizontally to the next character FloatRect bounds; ///< Bounding rectangle of the glyph, in coordinates relative to the baseline IntRect textureRect; ///< Texture coordinates of the glyph inside the font's texture }; diff --git a/include/SFML/Graphics/Image.hpp b/include/SFML/Graphics/Image.hpp index 9e23ad266..82f77ef58 100644 --- a/include/SFML/Graphics/Image.hpp +++ b/include/SFML/Graphics/Image.hpp @@ -76,7 +76,7 @@ public: /// /// The \a pixel array is assumed to contain 32-bits RGBA pixels, /// and have the given \a width and \a height. If not, this is - /// an undefined behaviour. + /// an undefined behavior. /// If \a pixels is null, an empty image is created. /// /// \param width Width of the image @@ -203,7 +203,7 @@ public: /// /// This function doesn't check the validity of the pixel /// coordinates, using out-of-range values will result in - /// an undefined behaviour. + /// an undefined behavior. /// /// \param x X coordinate of pixel to change /// \param y Y coordinate of pixel to change @@ -219,7 +219,7 @@ public: /// /// This function doesn't check the validity of the pixel /// coordinates, using out-of-range values will result in - /// an undefined behaviour. + /// an undefined behavior. /// /// \param x X coordinate of pixel to get /// \param y Y coordinate of pixel to get diff --git a/include/SFML/Graphics/PrimitiveType.hpp b/include/SFML/Graphics/PrimitiveType.hpp index 9f4d82d73..16e7d3594 100644 --- a/include/SFML/Graphics/PrimitiveType.hpp +++ b/include/SFML/Graphics/PrimitiveType.hpp @@ -32,7 +32,7 @@ namespace sf /// \brief Types of primitives that a sf::VertexArray can render /// /// Points and lines have no area, therefore their thickness -/// will always be 1 pixel, regarldess the current transform +/// will always be 1 pixel, regardless the current transform /// and view. /// //////////////////////////////////////////////////////////// diff --git a/include/SFML/Graphics/Rect.hpp b/include/SFML/Graphics/Rect.hpp index a89398af7..e6a0ded58 100644 --- a/include/SFML/Graphics/Rect.hpp +++ b/include/SFML/Graphics/Rect.hpp @@ -219,7 +219,7 @@ typedef Rect FloatRect; /// don't intersect. /// /// sf::Rect is a template and may be used with any numeric type, but -/// for simplicity the instanciations used by SFML are typedefed: +/// for simplicity the instantiations used by SFML are typedefed: /// \li sf::Rect is sf::IntRect /// \li sf::Rect is sf::FloatRect /// diff --git a/include/SFML/Graphics/RenderStates.hpp b/include/SFML/Graphics/RenderStates.hpp index d61983684..2a5ac9ab5 100644 --- a/include/SFML/Graphics/RenderStates.hpp +++ b/include/SFML/Graphics/RenderStates.hpp @@ -147,7 +147,7 @@ public: /// on top of each object's transform. /// /// Most objects, especially high-level drawables, can be drawn -/// directly without defining render states explicitely -- the +/// directly without defining render states explicitly -- the /// default set of states is ok in most cases. /// \code /// window.Draw(sprite); diff --git a/include/SFML/Graphics/RenderTarget.hpp b/include/SFML/Graphics/RenderTarget.hpp index b6fafac44..505623575 100644 --- a/include/SFML/Graphics/RenderTarget.hpp +++ b/include/SFML/Graphics/RenderTarget.hpp @@ -133,7 +133,7 @@ public: /// coordinates, using the current view /// /// This function is an overload of the mapPixelToCoords - /// function that implicitely uses the current view. + /// function that implicitly uses the current view. /// It is equivalent to: /// \code /// target.mapPixelToCoords(point, target.getView()); @@ -184,7 +184,7 @@ public: /// coordinates, using the current view /// /// This function is an overload of the mapCoordsToPixel - /// function that implicitely uses the current view. + /// function that implicitly uses the current view. /// It is equivalent to: /// \code /// target.mapCoordsToPixel(point, target.getView()); @@ -428,7 +428,7 @@ private: /// \class sf::RenderTarget /// \ingroup graphics /// -/// sf::RenderTarget defines the common behaviour of all the +/// sf::RenderTarget defines the common behavior of all the /// 2D render targets usable in the graphics module. It makes /// it possible to draw 2D entities like sprites, shapes, text /// without using any OpenGL command directly. diff --git a/include/SFML/Graphics/RenderWindow.hpp b/include/SFML/Graphics/RenderWindow.hpp index c70772dbd..5ff4a6874 100644 --- a/include/SFML/Graphics/RenderWindow.hpp +++ b/include/SFML/Graphics/RenderWindow.hpp @@ -59,7 +59,7 @@ public: /// /// This constructor creates the window with the size and pixel /// depth defined in \a mode. An optional style can be passed to - /// customize the look and behaviour of the window (borders, + /// customize the look and behavior of the window (borders, /// title bar, resizable, closable, ...). /// /// The fourth parameter is an optional structure specifying diff --git a/include/SFML/Graphics/Shape.hpp b/include/SFML/Graphics/Shape.hpp index 61a9f750d..fd5491c93 100644 --- a/include/SFML/Graphics/Shape.hpp +++ b/include/SFML/Graphics/Shape.hpp @@ -59,7 +59,7 @@ public: /// doesn't store its own copy of the texture, but rather keeps /// a pointer to the one that you passed to this function. /// If the source texture is destroyed and the shape tries to - /// use it, the behaviour is undefined. + /// use it, the behavior is undefined. /// \a texture can be NULL to disable texturing. /// If \a resetRect is true, the TextureRect property of /// the shape is automatically adjusted to the size of the new @@ -252,7 +252,7 @@ protected: /// \brief Recompute the internal geometry of the shape /// /// This function must be called by the derived class everytime - /// the shape's points change (ie. the result of either + /// the shape's points change (i.e. the result of either /// getPointCount or getPoint is different). /// //////////////////////////////////////////////////////////// diff --git a/include/SFML/Graphics/Sprite.hpp b/include/SFML/Graphics/Sprite.hpp index 23cd26d9e..2b4838424 100644 --- a/include/SFML/Graphics/Sprite.hpp +++ b/include/SFML/Graphics/Sprite.hpp @@ -85,7 +85,7 @@ public: /// doesn't store its own copy of the texture, but rather keeps /// a pointer to the one that you passed to this function. /// If the source texture is destroyed and the sprite tries to - /// use it, the behaviour is undefined. + /// use it, the behavior is undefined. /// If \a resetRect is true, the TextureRect property of /// the sprite is automatically adjusted to the size of the new /// texture. If it is false, the texture rect is left unchanged. diff --git a/include/SFML/Graphics/Text.hpp b/include/SFML/Graphics/Text.hpp index 5b9262424..abed899ad 100644 --- a/include/SFML/Graphics/Text.hpp +++ b/include/SFML/Graphics/Text.hpp @@ -116,7 +116,7 @@ public: /// doesn't store its own copy of the font, but rather keeps /// a pointer to the one that you passed to this function. /// If the font is destroyed and the text tries to - /// use it, the behaviour is undefined. + /// use it, the behavior is undefined. /// /// \param font New font /// diff --git a/include/SFML/Graphics/Texture.hpp b/include/SFML/Graphics/Texture.hpp index 729fc4057..a68b0765b 100644 --- a/include/SFML/Graphics/Texture.hpp +++ b/include/SFML/Graphics/Texture.hpp @@ -244,7 +244,7 @@ public: /// /// No additional check is performed on the size of the pixel /// array, passing invalid arguments will lead to an undefined - /// behaviour. + /// behavior. /// /// This function does nothing if \a pixels is null or if the /// texture was not previously created. @@ -262,7 +262,7 @@ public: /// /// No additional check is performed on the size of the pixel /// array or the bounds of the area to update, passing invalid - /// arguments will lead to an undefined behaviour. + /// arguments will lead to an undefined behavior. /// /// This function does nothing if \a pixels is null or if the /// texture was not previously created. @@ -286,7 +286,7 @@ public: /// /// No additional check is performed on the size of the image, /// passing an image bigger than the texture will lead to an - /// undefined behaviour. + /// undefined behavior. /// /// This function does nothing if the texture was not /// previously created. @@ -301,7 +301,7 @@ public: /// /// No additional check is performed on the size of the image, /// passing an invalid combination of image size and offset - /// will lead to an undefined behaviour. + /// will lead to an undefined behavior. /// /// This function does nothing if the texture was not /// previously created. @@ -323,7 +323,7 @@ public: /// /// No additional check is performed on the size of the window, /// passing a window bigger than the texture will lead to an - /// undefined behaviour. + /// undefined behavior. /// /// This function does nothing if either the texture or the window /// was not previously created. @@ -338,7 +338,7 @@ public: /// /// No additional check is performed on the size of the window, /// passing an invalid combination of window size and offset - /// will lead to an undefined behaviour. + /// will lead to an undefined behavior. /// /// This function does nothing if either the texture or the window /// was not previously created. diff --git a/include/SFML/Graphics/VertexArray.hpp b/include/SFML/Graphics/VertexArray.hpp index 4144d4f81..6faca0776 100644 --- a/include/SFML/Graphics/VertexArray.hpp +++ b/include/SFML/Graphics/VertexArray.hpp @@ -75,7 +75,7 @@ public: /// \brief Get a read-write access to a vertex by its index /// /// This function doesn't check \a index, it must be in range - /// [0, getVertexCount() - 1]. The behaviour is undefined + /// [0, getVertexCount() - 1]. The behavior is undefined /// otherwise. /// /// \param index Index of the vertex to get @@ -91,7 +91,7 @@ public: /// \brief Get a read-only access to a vertex by its index /// /// This function doesn't check \a index, it must be in range - /// [0, getVertexCount() - 1]. The behaviour is undefined + /// [0, getVertexCount() - 1]. The behavior is undefined /// otherwise. /// /// \param index Index of the vertex to get diff --git a/include/SFML/Network/Ftp.hpp b/include/SFML/Network/Ftp.hpp index b2cd744b6..4dd242b67 100644 --- a/include/SFML/Network/Ftp.hpp +++ b/include/SFML/Network/Ftp.hpp @@ -216,7 +216,7 @@ public: //////////////////////////////////////////////////////////// /// \brief Specialization of FTP response returning a - /// filename lisiting + /// filename listing //////////////////////////////////////////////////////////// class SFML_NETWORK_API ListingResponse : public Response { diff --git a/include/SFML/Network/Http.hpp b/include/SFML/Network/Http.hpp index 62ec98e32..8b22a833e 100644 --- a/include/SFML/Network/Http.hpp +++ b/include/SFML/Network/Http.hpp @@ -212,12 +212,12 @@ public: MultipleChoices = 300, ///< The requested page can be accessed from several locations MovedPermanently = 301, ///< The requested page has permanently moved to a new location MovedTemporarily = 302, ///< The requested page has temporarily moved to a new location - NotModified = 304, ///< For conditionnal requests, means the requested page hasn't changed and doesn't need to be refreshed + NotModified = 304, ///< For conditional requests, means the requested page hasn't changed and doesn't need to be refreshed // 4xx: client error BadRequest = 400, ///< The server couldn't understand the request (syntax error) - Unauthorized = 401, ///< The requested page needs an authentification to be accessed - Forbidden = 403, ///< The requested page cannot be accessed at all, even with authentification + Unauthorized = 401, ///< The requested page needs an authentication to be accessed + Forbidden = 403, ///< The requested page cannot be accessed at all, even with authentication NotFound = 404, ///< The requested page doesn't exist RangeNotSatisfiable = 407, ///< The server can't satisfy the partial GET request (with a "Range" header field) @@ -393,7 +393,7 @@ public: /// Warning: this function waits for the server's response and may /// not return instantly; use a thread if you don't want to block your /// application, or use a timeout to limit the time to wait. A value - /// of Time::Zero means that the client will use the system defaut timeout + /// of Time::Zero means that the client will use the system default timeout /// (which is usually pretty long). /// /// \param request Request to send diff --git a/include/SFML/Network/Packet.hpp b/include/SFML/Network/Packet.hpp index 84763a318..a400aaed9 100644 --- a/include/SFML/Network/Packet.hpp +++ b/include/SFML/Network/Packet.hpp @@ -139,7 +139,7 @@ public: /// A packet will be in an invalid state if it has no more /// data to read. /// - /// This behaviour is the same as standard C++ streams. + /// This behavior is the same as standard C++ streams. /// /// Usage example: /// \code @@ -242,7 +242,7 @@ protected: /// /// This function can be defined by derived classes to /// transform the data after it is received; this can be - /// used for uncompression, decryption, etc. + /// used for decompression, decryption, etc. /// The function receives a pointer to the received data, /// and must fill the packet with the transformed bytes. /// The default implementation fills the packet directly @@ -300,12 +300,12 @@ private: /// (sf::TcpSocket, sf::UdpSocket). /// /// Packets solve 2 fundamental problems that arise when -/// transfering data over the network: +/// transferring data over the network: /// \li data is interpreted correctly according to the endianness /// \li the bounds of the packet are preserved (one send == one receive) /// /// The sf::Packet class provides both input and output modes. -/// It is designed to follow the behaviour of standard C++ streams, +/// It is designed to follow the behavior of standard C++ streams, /// using operators >> and << to extract and insert data. /// /// It is recommended to use only fixed-size types (like sf::Int32, etc.), diff --git a/include/SFML/Network/SocketSelector.hpp b/include/SFML/Network/SocketSelector.hpp index 382b8c6b4..336b30101 100644 --- a/include/SFML/Network/SocketSelector.hpp +++ b/include/SFML/Network/SocketSelector.hpp @@ -188,7 +188,7 @@ private: /// (socket classes are not copyable anyway), it simply keeps /// a reference to the original sockets that you pass to the /// "add" function. Therefore, you can't use the selector as a -/// socket container, you must store them oustide and make sure +/// socket container, you must store them outside and make sure /// that they are alive as long as they are used in the selector. /// /// Using a selector is simple: diff --git a/include/SFML/Network/TcpSocket.hpp b/include/SFML/Network/TcpSocket.hpp index f4c310448..03a69ec7c 100644 --- a/include/SFML/Network/TcpSocket.hpp +++ b/include/SFML/Network/TcpSocket.hpp @@ -244,7 +244,7 @@ private: /// class to get more details about how they work. /// /// The socket is automatically disconnected when it is destroyed, -/// but if you want to explicitely close the connection while +/// but if you want to explicitly close the connection while /// the socket instance is still alive, you can call disconnect. /// /// Usage example: diff --git a/include/SFML/Network/UdpSocket.hpp b/include/SFML/Network/UdpSocket.hpp index 814e349c0..268edd022 100644 --- a/include/SFML/Network/UdpSocket.hpp +++ b/include/SFML/Network/UdpSocket.hpp @@ -235,7 +235,7 @@ private: /// /// If the socket is bound to a port, it is automatically /// unbound from it when the socket is destroyed. However, -/// you can unbind the socket explicitely with the Unbind +/// you can unbind the socket explicitly with the Unbind /// function if necessary, to stop receiving messages or /// make the port available for other sockets. /// diff --git a/include/SFML/System.hpp b/include/SFML/System.hpp index 675fbb0a6..eca81a33f 100644 --- a/include/SFML/System.hpp +++ b/include/SFML/System.hpp @@ -50,7 +50,7 @@ /// \defgroup system System module /// /// Base module of SFML, defining various utilities. It provides -/// vector classes, unicode strings and conversion functions, +/// vector classes, Unicode strings and conversion functions, /// threads and mutexes, timing classes. /// //////////////////////////////////////////////////////////// diff --git a/include/SFML/System/Lock.hpp b/include/SFML/System/Lock.hpp index 84810e77e..1eec3428f 100644 --- a/include/SFML/System/Lock.hpp +++ b/include/SFML/System/Lock.hpp @@ -107,7 +107,7 @@ private: /// } // mutex is unlocked /// \endcode /// -/// Because the mutex is not explicitely unlocked in the code, +/// Because the mutex is not explicitly unlocked in the code, /// it may remain locked longer than needed. If the region /// of the code that needs to be protected by the mutex is /// not the entire function, a good practice is to create a diff --git a/include/SFML/System/NonCopyable.hpp b/include/SFML/System/NonCopyable.hpp index 81c179450..e11b0d52f 100644 --- a/include/SFML/System/NonCopyable.hpp +++ b/include/SFML/System/NonCopyable.hpp @@ -47,7 +47,7 @@ protected: /// /// Because this class has a copy constructor, the compiler /// will not automatically generate the default constructor. - /// That's why we must define it explicitely. + /// That's why we must define it explicitly. /// //////////////////////////////////////////////////////////// NonCopyable() {} @@ -89,7 +89,7 @@ private: /// \class sf::NonCopyable /// \ingroup system /// -/// This class makes its instances non-copyable, by explicitely +/// This class makes its instances non-copyable, by explicitly /// disabling its copy constructor and its assignment operator. /// /// To create a non-copyable class, simply inherit from diff --git a/include/SFML/System/ThreadLocal.hpp b/include/SFML/System/ThreadLocal.hpp index 755a842fc..00703a733 100644 --- a/include/SFML/System/ThreadLocal.hpp +++ b/include/SFML/System/ThreadLocal.hpp @@ -51,7 +51,7 @@ public: //////////////////////////////////////////////////////////// /// \brief Default constructor /// - /// \param value Optional value to initalize the variable + /// \param value Optional value to initialize the variable /// //////////////////////////////////////////////////////////// ThreadLocal(void* value = NULL); diff --git a/include/SFML/System/ThreadLocalPtr.hpp b/include/SFML/System/ThreadLocalPtr.hpp index f51f5d6fd..0858fdc1a 100644 --- a/include/SFML/System/ThreadLocalPtr.hpp +++ b/include/SFML/System/ThreadLocalPtr.hpp @@ -73,7 +73,7 @@ public: T* operator ->() const; //////////////////////////////////////////////////////////// - /// \brief Cast operator to implicitely convert the + /// \brief Cast operator to implicitly convert the /// pointer to its raw pointer type (T*) /// /// \return Pointer to the actual object diff --git a/include/SFML/System/Utf.inl b/include/SFML/System/Utf.inl index 80dfd8272..8711ca02a 100644 --- a/include/SFML/System/Utf.inl +++ b/include/SFML/System/Utf.inl @@ -339,7 +339,7 @@ Out Utf<16>::encode(Uint32 input, Out output, Uint16 replacement) } else if (input > 0x0010FFFF) { - // Invalid character (greater than the maximum unicode value) + // Invalid character (greater than the maximum Unicode value) if (replacement) *output++ = replacement; } @@ -638,7 +638,7 @@ Out Utf<32>::toUtf32(In begin, In end, Out output) template Uint32 Utf<32>::decodeAnsi(In input, const std::locale& locale) { - // On Windows, gcc's standard library (glibc++) has almost + // On Windows, GCC's standard library (glibc++) has almost // no support for Unicode stuff. As a consequence, in this // context we can only use the default locale and ignore // the one passed as parameter. diff --git a/include/SFML/System/Vector2.hpp b/include/SFML/System/Vector2.hpp index 668aab8da..07b3e96f8 100644 --- a/include/SFML/System/Vector2.hpp +++ b/include/SFML/System/Vector2.hpp @@ -280,7 +280,7 @@ typedef Vector2 Vector2f; /// \li sf::Vector2 is sf::Vector2u /// /// The sf::Vector2 class has a small and simple interface, its x and y members -/// can be accessed directly (there's no accessor like setX(), getX()) and it +/// can be accessed directly (there are no accessors like setX(), getX()) and it /// contains no mathematical function like dot product, cross product, length, etc. /// /// Usage example: diff --git a/include/SFML/System/Vector3.hpp b/include/SFML/System/Vector3.hpp index 84cf9fc09..28d0c0760 100644 --- a/include/SFML/System/Vector3.hpp +++ b/include/SFML/System/Vector3.hpp @@ -280,7 +280,7 @@ typedef Vector3 Vector3f; /// \li sf::Vector3 is sf::Vector3i /// /// The sf::Vector3 class has a small and simple interface, its x and y members -/// can be accessed directly (there's no accessor like setX(), getX()) and it +/// can be accessed directly (there are no accessors like setX(), getX()) and it /// contains no mathematical function like dot product, cross product, length, etc. /// /// Usage example: diff --git a/include/SFML/Window/Context.hpp b/include/SFML/Window/Context.hpp index 828ba6f77..595d4d69e 100644 --- a/include/SFML/Window/Context.hpp +++ b/include/SFML/Window/Context.hpp @@ -66,7 +66,7 @@ public: ~Context(); //////////////////////////////////////////////////////////// - /// \brief Activate or deactivate explicitely the context + /// \brief Activate or deactivate explicitly the context /// /// \param active True to activate, false to deactivate /// diff --git a/include/SFML/Window/Event.hpp b/include/SFML/Window/Event.hpp index 852935405..7499a0522 100644 --- a/include/SFML/Window/Event.hpp +++ b/include/SFML/Window/Event.hpp @@ -74,7 +74,7 @@ public: //////////////////////////////////////////////////////////// struct TextEvent { - Uint32 unicode; ///< UTF-32 unicode value of the character + Uint32 unicode; ///< UTF-32 Unicode value of the character }; //////////////////////////////////////////////////////////// diff --git a/include/SFML/Window/Joystick.hpp b/include/SFML/Window/Joystick.hpp index 85705aa38..67a35db2d 100644 --- a/include/SFML/Window/Joystick.hpp +++ b/include/SFML/Window/Joystick.hpp @@ -157,7 +157,7 @@ public: /// \brief Update the states of all joysticks /// /// This function is used internally by SFML, so you normally - /// don't have to call it explicitely. However, you may need to + /// don't have to call it explicitly. However, you may need to /// call it if you have no window yet (or no window at all): /// in this case the joysticks states are not updated automatically. /// @@ -202,7 +202,7 @@ public: /// joysticks. When you have a window with event handling, this is done /// automatically, you don't need to call anything. But if you have no /// window, or if you want to check joysticks state before creating one, -/// you must call sf::Joystick::update explicitely. +/// you must call sf::Joystick::update explicitly. /// /// Usage example: /// \code diff --git a/include/SFML/Window/Sensor.hpp b/include/SFML/Window/Sensor.hpp index 3edb8ee53..099dca717 100644 --- a/include/SFML/Window/Sensor.hpp +++ b/include/SFML/Window/Sensor.hpp @@ -107,7 +107,7 @@ public: /// /// sf::Sensor provides an interface to the state of the /// various sensors that a device provides. It only contains static -/// functions, so it's not meant to be instanciated. +/// functions, so it's not meant to be instantiated. /// /// This class allows users to query the sensors values at any /// time and directly, without having to deal with a window and diff --git a/include/SFML/Window/Touch.hpp b/include/SFML/Window/Touch.hpp index b9e32bc0d..8d61f1a9e 100644 --- a/include/SFML/Window/Touch.hpp +++ b/include/SFML/Window/Touch.hpp @@ -94,7 +94,7 @@ public: /// /// sf::Touch provides an interface to the state of the /// touches. It only contains static functions, so it's not -/// meant to be instanciated. +/// meant to be instantiated. /// /// This class allows users to query the touches state at any /// time and directly, without having to deal with a window and diff --git a/include/SFML/Window/VideoMode.hpp b/include/SFML/Window/VideoMode.hpp index 5f7fdb574..fcced93cc 100644 --- a/include/SFML/Window/VideoMode.hpp +++ b/include/SFML/Window/VideoMode.hpp @@ -203,7 +203,7 @@ SFML_WINDOW_API bool operator >=(const VideoMode& left, const VideoMode& right); /// A custom video mode can also be checked directly for /// fullscreen compatibility with its isValid() function. /// -/// Additionnally, sf::VideoMode provides a static function +/// Additionally, sf::VideoMode provides a static function /// to get the mode currently used by the desktop: getDesktopMode(). /// This allows to build windows with the same size or pixel /// depth as the current resolution. diff --git a/include/SFML/Window/Window.hpp b/include/SFML/Window/Window.hpp index 6d4ecf79b..88942dc44 100644 --- a/include/SFML/Window/Window.hpp +++ b/include/SFML/Window/Window.hpp @@ -72,7 +72,7 @@ public: /// /// This constructor creates the window with the size and pixel /// depth defined in \a mode. An optional style can be passed to - /// customize the look and behaviour of the window (borders, + /// customize the look and behavior of the window (borders, /// title bar, resizable, closable, ...). If \a style contains /// Style::Fullscreen, then \a mode must be a valid video mode. /// @@ -217,7 +217,7 @@ public: /// /// This function is blocking: if there's no pending event then /// it will wait until an event is received. - /// After this function returns (and no error occured), + /// After this function returns (and no error occurred), /// the \a event object is always valid and filled properly. /// This function is typically used when you have a thread that /// is dedicated to events handling: you want to make this thread @@ -232,7 +232,7 @@ public: /// /// \param event Event to be returned /// - /// \return False if any error occured + /// \return False if any error occurred /// /// \see pollEvent /// diff --git a/src/SFML/Audio/SoundStream.cpp b/src/SFML/Audio/SoundStream.cpp index f3ac6a407..832188932 100644 --- a/src/SFML/Audio/SoundStream.cpp +++ b/src/SFML/Audio/SoundStream.cpp @@ -315,7 +315,7 @@ void SoundStream::streamData() } } - // Get the number of buffers that have been processed (ie. ready for reuse) + // Get the number of buffers that have been processed (i.e. ready for reuse) ALint nbProcessed = 0; alCheck(alGetSourcei(m_source, AL_BUFFERS_PROCESSED, &nbProcessed)); @@ -381,7 +381,7 @@ void SoundStream::streamData() // Stop the playback alCheck(alSourceStop(m_source)); - // Unqueue any buffer left in the queue + // Dequeue any buffer left in the queue clearQueue(); // Delete the buffers @@ -460,7 +460,7 @@ void SoundStream::clearQueue() ALint nbQueued; alCheck(alGetSourcei(m_source, AL_BUFFERS_QUEUED, &nbQueued)); - // Unqueue them all + // Dequeue them all ALuint buffer; for (ALint i = 0; i < nbQueued; ++i) alCheck(alSourceUnqueueBuffers(m_source, 1, &buffer)); diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index 68083b9de..e54be409d 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -197,7 +197,7 @@ bool Font::loadFromMemory(const void* data, std::size_t sizeInBytes) return false; } - // Select the unicode character map + // Select the Unicode character map if (FT_Select_Charmap(face, FT_ENCODING_UNICODE) != 0) { err() << "Failed to load font from memory (failed to set the Unicode character set)" << std::endl; @@ -261,7 +261,7 @@ bool Font::loadFromStream(InputStream& stream) return false; } - // Select the unicode character map + // Select the Unicode character map if (FT_Select_Charmap(face, FT_ENCODING_UNICODE) != 0) { err() << "Failed to load font from stream (failed to set the Unicode character set)" << std::endl; @@ -520,7 +520,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold) c if ((width > 0) && (height > 0)) { // Leave a small padding around characters, so that filtering doesn't - // pollute them with pixels from neighbours + // pollute them with pixels from neighbors const unsigned int padding = 1; // Get the glyphs page corresponding to the character size @@ -529,7 +529,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold) c // Find a good position for the new glyph into the texture glyph.textureRect = findGlyphRect(page, width + 2 * padding, height + 2 * padding); - // Make sure the texture data is positioned in the centre + // Make sure the texture data is positioned in the center // of the allocated texture rectangle glyph.textureRect.left += padding; glyph.textureRect.top += padding; diff --git a/src/SFML/Graphics/ImageLoader.cpp b/src/SFML/Graphics/ImageLoader.cpp index de9b09227..be6aecf56 100644 --- a/src/SFML/Graphics/ImageLoader.cpp +++ b/src/SFML/Graphics/ImageLoader.cpp @@ -286,7 +286,7 @@ bool ImageLoader::writeJpg(const std::string& filename, const std::vector jpeg_set_defaults(&compressInfos); jpeg_set_quality(&compressInfos, 90, TRUE); - // Get rid of the aplha channel + // Get rid of the alpha channel std::vector buffer(width * height * 3); for (std::size_t i = 0; i < width * height; ++i) { diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index 29a383efc..1cf764808 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -632,7 +632,7 @@ int Shader::getParamLocation(const std::string& name) #else // SFML_OPENGL_ES -// OpenGL ES 1 does't support GLSL shaders at all, we have to provide an empty implementation +// OpenGL ES 1 doesn't support GLSL shaders at all, we have to provide an empty implementation namespace sf { diff --git a/src/SFML/Main/MainAndroid.cpp b/src/SFML/Main/MainAndroid.cpp index db79d1f34..5dfb6f56f 100644 --- a/src/SFML/Main/MainAndroid.cpp +++ b/src/SFML/Main/MainAndroid.cpp @@ -64,7 +64,7 @@ ActivityStates* retrieveStates(ANativeActivity* activity) //////////////////////////////////////////////////////////// static void initializeMain(ActivityStates* states) { - // Protect from concurent access + // Protect from concurrent access Lock lock(states->mutex); // Prepare and share the looper to be read later @@ -80,7 +80,7 @@ static void initializeMain(ActivityStates* states) //////////////////////////////////////////////////////////// static void terminateMain(ActivityStates* states) { - // Protect from concurent access + // Protect from concurrent access Lock lock(states->mutex); // The main thread has finished, we must explicitly ask the activity to finish @@ -154,7 +154,7 @@ void goToFullscreenMode(ANativeActivity* activity) void getScreenSizeInPixels(ANativeActivity* activity, int* width, int* height) { - // Perform the following java code: + // Perform the following Java code: // // DisplayMetrics dm = new DisplayMetrics(); // getWindowManager().getDefaultDisplay().getMetrics(dm); diff --git a/src/SFML/Main/SFMLActivity.cpp b/src/SFML/Main/SFMLActivity.cpp index c94646694..549303da6 100644 --- a/src/SFML/Main/SFMLActivity.cpp +++ b/src/SFML/Main/SFMLActivity.cpp @@ -41,7 +41,7 @@ std::string getLibraryName(JNIEnv* lJNIEnv, jobject& objectActivityInfo) { // This function reads the value of meta-data "sfml.app.lib_name" // found in the Android Manifest file and returns it. It performs the - // following java code using the JNI interface: + // following Java code using the JNI interface: // // ai.metaData.getString("sfml.app.lib_name"); diff --git a/src/SFML/Network/IpAddress.cpp b/src/SFML/Network/IpAddress.cpp index ea78aad5d..045909130 100644 --- a/src/SFML/Network/IpAddress.cpp +++ b/src/SFML/Network/IpAddress.cpp @@ -37,7 +37,7 @@ namespace { if (address == "255.255.255.255") { - // The broadcast address needs to be handled explicitely, + // The broadcast address needs to be handled explicitly, // because it is also the value returned by inet_addr on error return INADDR_BROADCAST; } @@ -84,7 +84,7 @@ m_address(0) { // We're using 0 (INADDR_ANY) instead of INADDR_NONE to represent the invalid address, // because the latter is also the broadcast address (255.255.255.255); it's ok because - // SFML doesn't publicly use INADDR_ANY (it is always used implicitely) + // SFML doesn't publicly use INADDR_ANY (it is always used implicitly) } diff --git a/src/SFML/Network/Socket.cpp b/src/SFML/Network/Socket.cpp index 539b738c2..a74aa104e 100644 --- a/src/SFML/Network/Socket.cpp +++ b/src/SFML/Network/Socket.cpp @@ -101,7 +101,7 @@ void Socket::create(SocketHandle handle) if (m_type == Tcp) { - // Disable the Nagle algorithm (ie. removes buffering of TCP packets) + // Disable the Nagle algorithm (i.e. removes buffering of TCP packets) int yes = 1; if (setsockopt(m_socket, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast(&yes), sizeof(yes)) == -1) { diff --git a/src/SFML/Network/TcpSocket.cpp b/src/SFML/Network/TcpSocket.cpp index c6dadf917..ac6d6b98a 100644 --- a/src/SFML/Network/TcpSocket.cpp +++ b/src/SFML/Network/TcpSocket.cpp @@ -157,7 +157,7 @@ Socket::Status TcpSocket::connect(const IpAddress& remoteAddress, unsigned short // Get the error status Status status = priv::SocketImpl::getErrorStatus(); - // If we were in non-blocking mode, return immediatly + // If we were in non-blocking mode, return immediately if (!blocking) return status; diff --git a/src/SFML/System/Err.cpp b/src/SFML/System/Err.cpp index bdfbabfe6..1a3898615 100644 --- a/src/SFML/System/Err.cpp +++ b/src/SFML/System/Err.cpp @@ -33,7 +33,7 @@ namespace { // This class will be used as the default streambuf of sf::Err, -// it outputs to stderr by default (to keep the default behaviour) +// it outputs to stderr by default (to keep the default behavior) class DefaultErrStreamBuf : public std::streambuf { public: diff --git a/src/SFML/System/String.cpp b/src/SFML/System/String.cpp index a41b12f11..f0753dca8 100644 --- a/src/SFML/System/String.cpp +++ b/src/SFML/System/String.cpp @@ -295,7 +295,7 @@ void String::replace(const String& searchFor, const String& replaceWith) std::size_t len = searchFor.getSize(); std::size_t pos = find(searchFor); - // Replace each occurence of search + // Replace each occurrence of search while (pos != InvalidPos) { replace(pos, len, replaceWith); diff --git a/src/SFML/System/Unix/ClockImpl.hpp b/src/SFML/System/Unix/ClockImpl.hpp index 6b620bf66..1420b3ef8 100644 --- a/src/SFML/System/Unix/ClockImpl.hpp +++ b/src/SFML/System/Unix/ClockImpl.hpp @@ -37,7 +37,7 @@ namespace sf namespace priv { //////////////////////////////////////////////////////////// -/// \brief Unix implementaton of sf::Clock +/// \brief Unix implementation of sf::Clock /// //////////////////////////////////////////////////////////// class ClockImpl diff --git a/src/SFML/System/Unix/MutexImpl.cpp b/src/SFML/System/Unix/MutexImpl.cpp index 542ab2975..235393f34 100644 --- a/src/SFML/System/Unix/MutexImpl.cpp +++ b/src/SFML/System/Unix/MutexImpl.cpp @@ -35,7 +35,7 @@ namespace priv //////////////////////////////////////////////////////////// MutexImpl::MutexImpl() { - // Make it recursive to follow the expected behaviour + // Make it recursive to follow the expected behavior pthread_mutexattr_t attributes; pthread_mutexattr_init(&attributes); pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE); diff --git a/src/SFML/System/Unix/ThreadImpl.cpp b/src/SFML/System/Unix/ThreadImpl.cpp index 5fcc6465a..0d94dfa6b 100644 --- a/src/SFML/System/Unix/ThreadImpl.cpp +++ b/src/SFML/System/Unix/ThreadImpl.cpp @@ -79,7 +79,7 @@ void* ThreadImpl::entryPoint(void* userData) Thread* owner = static_cast(userData); #ifndef SFML_SYSTEM_ANDROID - // Tell the thread to handle cancel requests immediatly + // Tell the thread to handle cancel requests immediately pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); #endif diff --git a/src/SFML/System/Win32/ClockImpl.hpp b/src/SFML/System/Win32/ClockImpl.hpp index b57d207ea..f01708a63 100644 --- a/src/SFML/System/Win32/ClockImpl.hpp +++ b/src/SFML/System/Win32/ClockImpl.hpp @@ -37,7 +37,7 @@ namespace sf namespace priv { //////////////////////////////////////////////////////////// -/// \brief Windows implementaton of sf::Clock +/// \brief Windows implementation of sf::Clock /// //////////////////////////////////////////////////////////// class ClockImpl diff --git a/src/SFML/Window/Android/SensorImpl.cpp b/src/SFML/Window/Android/SensorImpl.cpp index 6492fff76..4e3658429 100644 --- a/src/SFML/Window/Android/SensorImpl.cpp +++ b/src/SFML/Window/Android/SensorImpl.cpp @@ -139,7 +139,7 @@ ASensor const* SensorImpl::getDefaultSensor(Sensor::Type sensor) int type = types[sensor]; - // Retrive the default sensor matching this type + // Retrieve the default sensor matching this type return ASensorManager_getDefaultSensor(sensorManager, type); } diff --git a/src/SFML/Window/Android/WindowImplAndroid.cpp b/src/SFML/Window/Android/WindowImplAndroid.cpp index 6f0b14db2..2c140b057 100644 --- a/src/SFML/Window/Android/WindowImplAndroid.cpp +++ b/src/SFML/Window/Android/WindowImplAndroid.cpp @@ -300,7 +300,7 @@ int WindowImplAndroid::processEvent(int fd, int events, void* data) //////////////////////////////////////////////////////////// void WindowImplAndroid::processScrollEvent(AInputEvent* _event, ActivityStates* states) { - // Prepare the java virtual machine + // Prepare the Java virtual machine jint lResult; jint lFlags = 0; @@ -315,9 +315,9 @@ void WindowImplAndroid::processScrollEvent(AInputEvent* _event, ActivityStates* lResult=lJavaVM->AttachCurrentThread(&lJNIEnv, &lJavaVMAttachArgs); if (lResult == JNI_ERR) - err() << "Failed to initialize JNI, couldn't get the unicode value" << std::endl; + err() << "Failed to initialize JNI, couldn't get the Unicode value" << std::endl; - // Retrieve everything we need to create this MotionEvent in java + // Retrieve everything we need to create this MotionEvent in Java jlong downTime = AMotionEvent_getDownTime(_event); jlong eventTime = AMotionEvent_getEventTime(_event); jint action = AMotionEvent_getAction(_event); @@ -331,7 +331,7 @@ void WindowImplAndroid::processScrollEvent(AInputEvent* _event, ActivityStates* jint deviceId = AInputEvent_getDeviceId(_event); jint edgeFlags = AMotionEvent_getEdgeFlags(_event); - // Create the MotionEvent object in java trough its static constructor obtain() + // Create the MotionEvent object in Java trough its static constructor obtain() jclass ClassMotionEvent = lJNIEnv->FindClass("android/view/MotionEvent"); jmethodID StaticMethodObtain = lJNIEnv->GetStaticMethodID(ClassMotionEvent, "obtain", "(JJIFFFFIFFII)Landroid/view/MotionEvent;"); jobject ObjectMotionEvent = lJNIEnv->CallStaticObjectMethod(ClassMotionEvent, StaticMethodObtain, downTime, eventTime, action, x, y, pressure, size, metaState, xPrecision, yPrecision, deviceId, edgeFlags); @@ -349,7 +349,7 @@ void WindowImplAndroid::processScrollEvent(AInputEvent* _event, ActivityStates* forwardEvent(event); - // Dettach this thread from the JVM + // Detach this thread from the JVM lJavaVM->DetachCurrentThread(); } @@ -670,7 +670,7 @@ int WindowImplAndroid::getUnicode(AInputEvent* event) lResult=lJavaVM->AttachCurrentThread(&lJNIEnv, &lJavaVMAttachArgs); if (lResult == JNI_ERR) - err() << "Failed to initialize JNI, couldn't get the unicode value" << std::endl; + err() << "Failed to initialize JNI, couldn't get the Unicode value" << std::endl; // Retrieve key data from the input event jlong downTime = AKeyEvent_getDownTime(event); @@ -689,11 +689,11 @@ int WindowImplAndroid::getUnicode(AInputEvent* event) jmethodID KeyEventConstructor = lJNIEnv->GetMethodID(ClassKeyEvent, "", "(JJIIIIIIII)V"); jobject ObjectKeyEvent = lJNIEnv->NewObject(ClassKeyEvent, KeyEventConstructor, downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, source); - // Call its getUnicodeChar() method to get the unicode value + // Call its getUnicodeChar() method to get the Unicode value jmethodID MethodGetUnicode = lJNIEnv->GetMethodID(ClassKeyEvent, "getUnicodeChar", "(I)I"); int unicode = lJNIEnv->CallIntMethod(ObjectKeyEvent, MethodGetUnicode, metaState); - // Dettach this thread from the JVM + // Detach this thread from the JVM lJavaVM->DetachCurrentThread(); return unicode; diff --git a/src/SFML/Window/Android/WindowImplAndroid.hpp b/src/SFML/Window/Android/WindowImplAndroid.hpp index 275bb51a8..cdfb5217e 100644 --- a/src/SFML/Window/Android/WindowImplAndroid.hpp +++ b/src/SFML/Window/Android/WindowImplAndroid.hpp @@ -204,17 +204,17 @@ private: /// /// \param symbol Android key to convert /// - /// \return Corrsponding SFML key code + /// \return Corresponding SFML key code /// //////////////////////////////////////////////////////////// static Keyboard::Key androidKeyToSF(int32_t key); //////////////////////////////////////////////////////////// - /// \brief Get unicode decoded from the input event + /// \brief Get Unicode decoded from the input event /// /// \param Event Input event /// - /// \return The unicode value + /// \return The Unicode value /// //////////////////////////////////////////////////////////// static int getUnicode(AInputEvent* event); diff --git a/src/SFML/Window/EGLCheck.cpp b/src/SFML/Window/EGLCheck.cpp index ea316c981..dabf54e1f 100644 --- a/src/SFML/Window/EGLCheck.cpp +++ b/src/SFML/Window/EGLCheck.cpp @@ -144,7 +144,7 @@ void eglCheckError(const char* file, unsigned int line) case EGL_CONTEXT_LOST: { error = "EGL_CONTEXT_LOST"; - description = "a power management event has occured. The application must destroy all contexts and reinitialise client API state and objects to continue rendering"; + description = "a power management event has occurred. The application must destroy all contexts and reinitialize client API state and objects to continue rendering"; break; } } diff --git a/src/SFML/Window/EglContext.cpp b/src/SFML/Window/EglContext.cpp index d18396f12..b4182dd2b 100644 --- a/src/SFML/Window/EglContext.cpp +++ b/src/SFML/Window/EglContext.cpp @@ -80,7 +80,7 @@ m_context (EGL_NO_CONTEXT), m_surface (EGL_NO_SURFACE), m_config (NULL) { - // Get the intialized EGL display + // Get the initialized EGL display m_display = getInitializedDisplay(); // Get the best EGL config matching the default video settings @@ -118,7 +118,7 @@ m_config (NULL) #endif - // Get the intialized EGL display + // Get the initialized EGL display m_display = getInitializedDisplay(); // Get the best EGL config matching the requested video settings @@ -148,7 +148,7 @@ m_config (NULL) //////////////////////////////////////////////////////////// EglContext::~EglContext() { - // Desactive the current context + // Deactivate the current context EGLContext currentContext = eglCheck(eglGetCurrentContext()); if (currentContext == m_context) @@ -258,7 +258,7 @@ EGLConfig EglContext::getBestConfig(EGLDisplay display, unsigned int bitsPerPixe //////////////////////////////////////////////////////////// XVisualInfo EglContext::selectBestVisual(::Display* XDisplay, unsigned int bitsPerPixel, const ContextSettings& settings) { - // Get the intialized EGL display + // Get the initialized EGL display EGLDisplay display = getInitializedDisplay(); // Get the best EGL config matching the default video settings diff --git a/src/SFML/Window/FreeBSD/JoystickImpl.cpp b/src/SFML/Window/FreeBSD/JoystickImpl.cpp index 4255b5b8f..c7392a809 100644 --- a/src/SFML/Window/FreeBSD/JoystickImpl.cpp +++ b/src/SFML/Window/FreeBSD/JoystickImpl.cpp @@ -219,7 +219,7 @@ bool JoystickImpl::open(unsigned int index) // And the id m_id = hid_get_report_id(m_file); - // Then allocate a buffer for data retrievement + // Then allocate a buffer for data retrieval m_length = hid_report_size(m_desc, hid_input, m_id); m_buffer.resize(m_length); diff --git a/src/SFML/Window/GlContext.hpp b/src/SFML/Window/GlContext.hpp index 2e24f4e27..9cd588b9c 100644 --- a/src/SFML/Window/GlContext.hpp +++ b/src/SFML/Window/GlContext.hpp @@ -201,7 +201,7 @@ protected: /// lower the score is, the better the configuration is. /// /// \param bitsPerPixel Requested pixel depth (bits per pixel) - /// \param settings Requested additionnal settings + /// \param settings Requested additional settings /// \param colorBits Color bits of the configuration to evaluate /// \param depthBits Depth bits of the configuration to evaluate /// \param stencilBits Stencil bits of the configuration to evaluate diff --git a/src/SFML/Window/OSX/HIDInputManager.mm b/src/SFML/Window/OSX/HIDInputManager.mm index 5bad22787..e4dc9e101 100644 --- a/src/SFML/Window/OSX/HIDInputManager.mm +++ b/src/SFML/Window/OSX/HIDInputManager.mm @@ -54,7 +54,7 @@ long HIDInputManager::getLocationID(IOHIDDeviceRef device) { long loc = 0; - // Get a unique ID: its usb location ID + // Get a unique ID: its USB location ID CFTypeRef typeRef = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDLocationIDKey)); if (!typeRef || (CFGetTypeID(typeRef) != CFNumberGetTypeID())) @@ -225,7 +225,7 @@ void HIDInputManager::loadKey(IOHIDElementRef key) if (virtualCode == 0xff) return; // no corresponding virtual code -> skip - // Now translate the virtual code to unicode according to + // Now translate the virtual code to Unicode according to // the current keyboard layout UInt32 deadKeyState = 0; @@ -286,7 +286,7 @@ void HIDInputManager::loadKey(IOHIDElementRef key) // 0x4c | 0x77 | Select //if (code == Keyboard::Unknown) { // The key is unknown. - // sf::err() << "This is an unknow key. Virtual key code is 0x" + // sf::err() << "This is an unknown key. Virtual key code is 0x" // << std::hex // << (UInt32)virtualCode // << " and HID usage code is 0x" diff --git a/src/SFML/Window/OSX/JoystickImpl.hpp b/src/SFML/Window/OSX/JoystickImpl.hpp index 21bde63b5..88afbdb00 100644 --- a/src/SFML/Window/OSX/JoystickImpl.hpp +++ b/src/SFML/Window/OSX/JoystickImpl.hpp @@ -126,7 +126,7 @@ private: Joystick::Identification m_identification; ///< Joystick identification static Location m_locationIDs[sf::Joystick::Count]; ///< Global Joystick register - /// For a corresponding SFML index, m_locationIDs is either some usb + /// For a corresponding SFML index, m_locationIDs is either some USB /// location or 0 if there isn't currently a connected joystick device }; diff --git a/src/SFML/Window/OSX/SFApplication.h b/src/SFML/Window/OSX/SFApplication.h index 495a67c89..3ef4ef17e 100644 --- a/src/SFML/Window/OSX/SFApplication.h +++ b/src/SFML/Window/OSX/SFApplication.h @@ -30,7 +30,7 @@ #import //////////////////////////////////////////////////////////// -/// \brief Event processing & Menu bar initialisation +/// \brief Event processing & Menu bar initialization /// //////////////////////////////////////////////////////////// @interface SFApplication : NSApplication diff --git a/src/SFML/Window/OSX/SFOpenGLView.mm b/src/SFML/Window/OSX/SFOpenGLView.mm index 3381df655..58298f70c 100644 --- a/src/SFML/Window/OSX/SFOpenGLView.mm +++ b/src/SFML/Window/OSX/SFOpenGLView.mm @@ -665,7 +665,7 @@ BOOL isValidTextUnicode(NSEvent* event); } - // Handle text entred event: + // Handle text entered event: // Ignore event if we don't want repeated keystrokes if (m_useKeyRepeat || ![theEvent isARepeat]) { @@ -687,7 +687,7 @@ BOOL isValidTextUnicode(NSEvent* event); // Backspace if (keycode == 0x33) { - // Send the correct unicode value (i.e. 8) instead of 127 (which is 'delete') + // Send the correct Unicode value (i.e. 8) instead of 127 (which is 'delete') m_requester->textEntered(8); } @@ -770,7 +770,7 @@ BOOL isValidTextUnicode(NSEvent* event); //#ifdef SFML_DEBUG // Don't bother the final customers with annoying messages. // if (key.code == sf::Keyboard::Unknown) { // The key is unknown. -// sf::err() << "This is an unknow key. Virtual key code is 0x" +// sf::err() << "This is an unknown key. Virtual key code is 0x" // << std::hex // << [event keyCode] // << "." diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index afdd31872..6f34d6878 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -386,7 +386,7 @@ //////////////////////////////////////////////////////// -(void)resizeTo:(unsigned int)width by:(unsigned int)height { - // Before resizing, remove resizeable mask to be able to resize + // Before resizing, remove resizable mask to be able to resize // beyond the desktop boundaries. NSUInteger styleMask = [m_window styleMask]; diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index e4dfe775a..9e297576d 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -383,7 +383,7 @@ void WindowImplX11::setSize(const Vector2u& size) void WindowImplX11::setTitle(const String& title) { // Bare X11 has no Unicode window title support. - // There is however an option to tell the window manager your unicode title via hints. + // There is however an option to tell the window manager your Unicode title via hints. // Convert to UTF-8 encoding. std::basic_string utf8Title; diff --git a/src/SFML/Window/Unix/WindowImplX11.hpp b/src/SFML/Window/Unix/WindowImplX11.hpp index 19de32f0c..d824492c8 100644 --- a/src/SFML/Window/Unix/WindowImplX11.hpp +++ b/src/SFML/Window/Unix/WindowImplX11.hpp @@ -220,7 +220,7 @@ private: /// /// \param symbol Key symbol to convert /// - /// \return Corrsponding SFML key code + /// \return Corresponding SFML key code /// //////////////////////////////////////////////////////////// static Keyboard::Key keysymToSF(KeySym symbol); @@ -232,11 +232,11 @@ private: ::Display* m_display; ///< Pointer to the display int m_screen; ///< Screen identifier XIM m_inputMethod; ///< Input method linked to the X display - XIC m_inputContext; ///< Input context used to get unicode input in our window + XIC m_inputContext; ///< Input context used to get Unicode input in our window bool m_isExternal; ///< Tell whether the window has been created externally or by SFML Atom m_atomClose; ///< Atom used to identify the close event int m_oldVideoMode; ///< Video mode in use before we switch to fullscreen - Cursor m_hiddenCursor; ///< As X11 doesn't provide cursor hidding, we must create a transparent one + Cursor m_hiddenCursor; ///< As X11 doesn't provide cursor hiding, we must create a transparent one bool m_keyRepeat; ///< Is the KeyRepeat feature enabled? Vector2i m_previousSize; ///< Previous size of the window, to find if a ConfigureNotify event is a resize event (could be a move event only) bool m_useSizeHints; ///< Is the size of the window fixed with size hints? diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index ee66005dc..380e25fc2 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -177,7 +177,7 @@ void JoystickImpl::cleanup() bool JoystickImpl::isConnected(unsigned int index) { // We check the connection state of joysticks only every N milliseconds, - // because of a strange (buggy?) behaviour of joyGetPosEx when joysticks + // because of a strange (buggy?) behavior of joyGetPosEx when joysticks // are just plugged/unplugged -- it takes really long and kills the app performances ConnectionCache& cache = connectionCache[index]; if (cache.timer.getElapsedTime() > connectionRefreshDelay) diff --git a/src/SFML/Window/Window.cpp b/src/SFML/Window/Window.cpp index 7487ea6ef..2f7bff321 100644 --- a/src/SFML/Window/Window.cpp +++ b/src/SFML/Window/Window.cpp @@ -410,7 +410,7 @@ bool Window::filterEvent(const Event& event) //////////////////////////////////////////////////////////// void Window::initialize() { - // Setup default behaviours (to get a consistent behaviour across different implementations) + // Setup default behaviors (to get a consistent behavior across different implementations) setVisible(true); setMouseCursorVisible(true); setVerticalSyncEnabled(false); diff --git a/src/SFML/Window/WindowImpl.hpp b/src/SFML/Window/WindowImpl.hpp index cdca80e0d..e30b42c0f 100644 --- a/src/SFML/Window/WindowImpl.hpp +++ b/src/SFML/Window/WindowImpl.hpp @@ -88,7 +88,7 @@ public: virtual ~WindowImpl(); //////////////////////////////////////////////////////////// - /// \brief Change the joystick threshold, ie. the value below which + /// \brief Change the joystick threshold, i.e. the value below which /// no move event will be generated /// /// \param threshold New threshold, in range [0, 100] @@ -101,7 +101,7 @@ public: /// /// If there's no event available, this function calls the /// window's internal event processing function. - /// The \a block parameter controls the behaviour of the function + /// The \a block parameter controls the behavior of the function /// if no event is available: if it is true then the function /// doesn't return until a new event is triggered; otherwise it /// returns false to indicate that no event is available. diff --git a/src/SFML/Window/iOS/SFAppDelegate.mm b/src/SFML/Window/iOS/SFAppDelegate.mm index 7321bf942..f63060b2c 100644 --- a/src/SFML/Window/iOS/SFAppDelegate.mm +++ b/src/SFML/Window/iOS/SFAppDelegate.mm @@ -73,7 +73,7 @@ namespace // Save the delegate instance delegateInstance = self; - // Instanciate the motion manager + // Instantiate the motion manager self.motionManager = [[CMMotionManager alloc] init]; // Register orientation changes notifications