summaryrefslogtreecommitdiff
path: root/src/render/surfacegraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-31 01:25:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-31 01:25:52 +0300
commitc91a3307224f79d08f8f85787310aea6a5d03c5f (patch)
treeb6e2551e758b802a7439bd7cb77a169b27a7e43d /src/render/surfacegraphics.cpp
parentf363a257dac02ca844677e7cf258a57b0f34cb8d (diff)
downloadplus-c91a3307224f79d08f8f85787310aea6a5d03c5f.tar.gz
plus-c91a3307224f79d08f8f85787310aea6a5d03c5f.tar.bz2
plus-c91a3307224f79d08f8f85787310aea6a5d03c5f.tar.xz
plus-c91a3307224f79d08f8f85787310aea6a5d03c5f.zip
Move blitmode enum into separate file.
Diffstat (limited to 'src/render/surfacegraphics.cpp')
-rw-r--r--src/render/surfacegraphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/surfacegraphics.cpp b/src/render/surfacegraphics.cpp
index c74351b92..e94aba5a5 100644
--- a/src/render/surfacegraphics.cpp
+++ b/src/render/surfacegraphics.cpp
@@ -29,7 +29,7 @@
SurfaceGraphics::SurfaceGraphics() :
Graphics(),
- mBlitMode(BLIT_NORMAL),
+ mBlitMode(BlitMode::BLIT_NORMAL),
mTarget(nullptr)
{
mOpenGL = RENDER_SOFTWARE;
@@ -61,7 +61,7 @@ void SurfaceGraphics::drawImage(const Image *const image,
#ifdef USE_SDL2
SDL_BlitSurface(image->mSDLSurface, &srcRect, mTarget, &dstRect);
#else
- if (mBlitMode == BLIT_NORMAL)
+ if (mBlitMode == BlitMode::BLIT_NORMAL)
{
SDL_BlitSurface(image->mSDLSurface, &srcRect, mTarget, &dstRect);
}
@@ -121,7 +121,7 @@ void SurfaceGraphics::drawImageCached(const Image *const image,
#ifdef USE_SDL2
SDL_BlitSurface(image->mSDLSurface, &srcRect, mTarget, &dstRect);
#else
- if (mBlitMode == BLIT_NORMAL)
+ if (mBlitMode == BlitMode::BLIT_NORMAL)
{
SDL_BlitSurface(image->mSDLSurface, &srcRect, mTarget, &dstRect);
}