diff options
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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<float>(x1) + 0.5F, static_cast<float>(y) + 0.5F); - glVertex2f(static_cast<float>(x2) + 0.5F, static_cast<float>(y) + 0.5F); + glVertex2f(static_cast<float>(x1) + 0.5F, + static_cast<float>(y) + 0.5F); + glVertex2f(static_cast<float>(x2) + 0.5F, + static_cast<float>(y) + 0.5F); } for (int x = x1; x < x2; x += width) { - glVertex2f(static_cast<float>(x) + 0.5F, static_cast<float>(y1) + 0.5F); - glVertex2f(static_cast<float>(x) + 0.5F, static_cast<float>(y2) + 0.5F); + glVertex2f(static_cast<float>(x) + 0.5F, + static_cast<float>(y1) + 0.5F); + glVertex2f(static_cast<float>(x) + 0.5F, + static_cast<float>(y2) + 0.5F); } glEnd(); |