diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-05 16:24:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-05 16:24:46 +0300 |
commit | 4cab6fc78e19799f223d951d5ccc9afb303b65f2 (patch) | |
tree | 5edbe1cacef94d9514b8d15773be5d00bc653331 /src/render/sdlgraphics.cpp | |
parent | 82359612155bd99dc2a629a4ad665252b571c122 (diff) | |
download | mv-4cab6fc78e19799f223d951d5ccc9afb303b65f2.tar.gz mv-4cab6fc78e19799f223d951d5ccc9afb303b65f2.tar.bz2 mv-4cab6fc78e19799f223d951d5ccc9afb303b65f2.tar.xz mv-4cab6fc78e19799f223d951d5ccc9afb303b65f2.zip |
Remove duplicate code in renderers.
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r-- | src/render/sdlgraphics.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index 3581a526d..494e17e0e 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -801,19 +801,6 @@ SDL_Surface *SDLGraphics::getScreenshot() return screenshot; } -bool SDLGraphics::drawNet(const int x1, const int y1, - const int x2, const int y2, - const int width, const int height) -{ - for (int y = y1; y < y2; y += height) - drawLine(x1, y, x2, y); - - for (int x = x1; x < x2; x += width) - drawLine(x, y1, x, y2); - - return true; -} - void SDLGraphics::calcWindow(ImageCollection *const vertCol, const int x, const int y, const int w, const int h, |