From 17b582cf14f6bb1f8f813b0753e9d7049d834799 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jul 2011 00:02:36 +0300 Subject: Disable software fast fillRectangle in windows. --- src/graphics.cpp | 2 ++ src/graphics.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2