diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/guichan/include/guichan/sdl/sdlpixel.hpp | 3 | ||||
-rw-r--r-- | src/logger.cpp | 3 | ||||
-rw-r--r-- | src/net/manaserv/network.cpp | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/guichan/include/guichan/sdl/sdlpixel.hpp b/src/guichan/include/guichan/sdl/sdlpixel.hpp index bfd08341b..f56100b4a 100644 --- a/src/guichan/include/guichan/sdl/sdlpixel.hpp +++ b/src/guichan/include/guichan/sdl/sdlpixel.hpp @@ -124,7 +124,8 @@ namespace gcn SDL_LockSurface(surface); - Uint8 *p = static_cast<Uint8*>(surface->pixels) + y * surface->pitch + x * bpp; + Uint8 *p = static_cast<Uint8*>(surface->pixels) + + y * surface->pitch + x * bpp; Uint32 pixel = SDL_MapRGB(surface->format, color.r, color.g, color.b); diff --git a/src/logger.cpp b/src/logger.cpp index 3c439136b..9c9c6efef 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -234,7 +234,8 @@ void Logger::error(const std::string &error_text) // (ConstStr255Param) msg, nullptr, nullptr); #elif defined __linux__ || __linux std::cerr << "Error: " << error_text << std::endl; - std::string msg = "xmessage \"Error happend. Please see log file for more information.\""; + std::string msg = "xmessage \"Error happend. " + "Please see log file for more information.\""; if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; #else diff --git a/src/net/manaserv/network.cpp b/src/net/manaserv/network.cpp index a75da3643..05041c56a 100644 --- a/src/net/manaserv/network.cpp +++ b/src/net/manaserv/network.cpp @@ -76,8 +76,8 @@ void finalize() if (connections) { - logger->safeError("Tried to shutdown the network subsystem while there " - "are network connections left!"); + logger->safeError("Tried to shutdown the network subsystem " + "while there are network connections left!"); } clearNetworkHandlers(); |