summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-13 00:02:36 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-13 00:44:26 +0300
commit17b582cf14f6bb1f8f813b0753e9d7049d834799 (patch)
tree59a6d75933d407ec7005bad61067f7bfeccbe125
parent0cb2b34eacd0081f82e7d68bbf57149f3549bfc9 (diff)
downloadmv-17b582cf14f6bb1f8f813b0753e9d7049d834799.tar.gz
mv-17b582cf14f6bb1f8f813b0753e9d7049d834799.tar.bz2
mv-17b582cf14f6bb1f8f813b0753e9d7049d834799.tar.xz
mv-17b582cf14f6bb1f8f813b0753e9d7049d834799.zip
Disable software fast fillRectangle in windows.
-rw-r--r--src/graphics.cpp2
-rw-r--r--src/graphics.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index d07d45bb3..fac91b4d5 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -723,6 +723,7 @@ int Graphics::SDL_FakeUpperBlit (SDL_Surface *src, SDL_Rect *srcrect,
return 0;
}
+#if !defined(__MINGW32__)
void Graphics::fillRectangle(const gcn::Rectangle& rectangle)
{
if (mClipStack.empty())
@@ -842,3 +843,4 @@ void Graphics::fillRectangle(const gcn::Rectangle& rectangle)
SDL_FillRect(mTarget, &rect, color);
}
}
+#endif
diff --git a/src/graphics.h b/src/graphics.h
index 40db25c5d..3c78a94fa 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -225,7 +225,9 @@ class Graphics : public gcn::SDLGraphics
BlitMode getBlitMode()
{ return mBlitMode; }
+#if !defined(__MINGW32__)
void fillRectangle(const gcn::Rectangle& rectangle);
+#endif
/**
* Updates the screen. This is done by either copying the buffer to the