summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 14:52:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:14 +0300
commit31f6125fc7253e278bba5db46e08f370d92717c7 (patch)
tree29c2ca0149333e8c55ee98094cb40012c431e49d /src/graphics.cpp
parentec1beaa2ee07368368e9bd45fe400eedc57419eb (diff)
downloadmanaplus-31f6125fc7253e278bba5db46e08f370d92717c7.tar.gz
manaplus-31f6125fc7253e278bba5db46e08f370d92717c7.tar.bz2
manaplus-31f6125fc7253e278bba5db46e08f370d92717c7.tar.xz
manaplus-31f6125fc7253e278bba5db46e08f370d92717c7.zip
move sdl video mode initialisation from graphics into sdlgraphics.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 51c2c4a24..09ea4d880 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -256,21 +256,6 @@ int Graphics::getMemoryUsage() const
return 0;
}
-bool Graphics::setVideoMode(const int w, const int h, const int bpp,
- const bool fs, const bool hwaccel,
- const bool resize, const bool noFrame)
-{
- setMainFlags(w, h, bpp, fs, hwaccel, resize, noFrame);
-
- if (!(mTarget = SDL_SetVideoMode(w, h, bpp, getSoftwareFlags())))
- return false;
-
- mRect.w = static_cast<uint16_t>(mTarget->w);
- mRect.h = static_cast<uint16_t>(mTarget->h);
-
- return videoInfo();
-}
-
bool Graphics::videoInfo()
{
char videoDriverName[65];