From 7e5386bc62f1f61d3409219292e1ec0d71cbd28e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Dec 2013 20:25:43 +0300 Subject: fix code style. --- src/render/graphics.cpp | 1 - src/render/graphics_calcImageRect.hpp | 13 ++++++++----- src/render/graphics_drawImageRect.hpp | 6 +++--- src/render/safeopenglgraphics.cpp | 12 ++++++++---- 4 files changed, 19 insertions(+), 13 deletions(-) (limited to 'src/render') diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index 7903b6431..1e8cef36e 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -28,7 +28,6 @@ #include "graphicsmanager.h" #include "logger.h" -#include "resources/image.h" #include "resources/imagehelper.h" #include "resources/openglimagehelper.h" diff --git a/src/render/graphics_calcImageRect.hpp b/src/render/graphics_calcImageRect.hpp index bf8da2a37..2d97f82c5 100644 --- a/src/render/graphics_calcImageRect.hpp +++ b/src/render/graphics_calcImageRect.hpp @@ -21,10 +21,10 @@ */ -//bool Graphics::calcImageRect(ImageVertexes *const vert, -// const int x, const int y, -// const int w, const int h, -// const ImageRect &imgRect) +// bool GraphicsX::calcImageRect(ImageVertexes *const vert, +// const int x, const int y, +// const int w, const int h, +// const ImageRect &imgRect) if (!vert) return; @@ -76,7 +76,10 @@ if (topRight) calcTileVertexesInline(vert, topRight, x + w - trw, y); } if (bottomLeft) - calcTileVertexesInline(vert, bottomLeft, x, y + h - bottomLeft->getHeight()); +{ + calcTileVertexesInline(vert, bottomLeft, + x, y + h - bottomLeft->getHeight()); +} if (bottomRight) { const int brw = bottomRight->getWidth(); diff --git a/src/render/graphics_drawImageRect.hpp b/src/render/graphics_drawImageRect.hpp index 28157fafd..9ce134ab9 100644 --- a/src/render/graphics_drawImageRect.hpp +++ b/src/render/graphics_drawImageRect.hpp @@ -21,9 +21,9 @@ */ -//void GraphicsX::drawImageRect(const int x, const int y, -// const int w, const int h, -// const ImageRect &imgRect) +// void GraphicsX::drawImageRect(const int x, const int y, +// const int w, const int h, +// const ImageRect &imgRect) BLOCK_START("Graphics::drawImageRect") diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index c988e6825..08638bbe0 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -576,14 +576,18 @@ bool SafeOpenGLGraphics::drawNet(const int x1, const int y1, glBegin(GL_LINES); for (int y = y1; y < y2; y += height) { - glVertex2f(static_cast(x1) + 0.5F, static_cast(y) + 0.5F); - glVertex2f(static_cast(x2) + 0.5F, static_cast(y) + 0.5F); + glVertex2f(static_cast(x1) + 0.5F, + static_cast(y) + 0.5F); + glVertex2f(static_cast(x2) + 0.5F, + static_cast(y) + 0.5F); } for (int x = x1; x < x2; x += width) { - glVertex2f(static_cast(x) + 0.5F, static_cast(y1) + 0.5F); - glVertex2f(static_cast(x) + 0.5F, static_cast(y2) + 0.5F); + glVertex2f(static_cast(x) + 0.5F, + static_cast(y1) + 0.5F); + glVertex2f(static_cast(x) + 0.5F, + static_cast(y2) + 0.5F); } glEnd(); -- cgit v1.2.3-60-g2f50