From 9c97e067a8ca711c2b4a017c7b3930c35d9e869e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 28 Sep 2009 21:21:24 +0200 Subject: [PATCH] added restriction in arm sw scaler --- platform/sdlv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/sdlv.cpp b/platform/sdlv.cpp index 149d091..1d2a578 100644 --- a/platform/sdlv.cpp +++ b/platform/sdlv.cpp @@ -173,7 +173,8 @@ public: bool canEnable(int bpp, int w, int h) const { - return bpp == 16 && w * 2 < GUI.Width && h * 2 < GUI.Height; + return bpp == 16 && w * 2 < GUI.Width && h * 2 < GUI.Height && + w % 16 == 0 /* asm assumes w div by 16 */; } Scaler* instantiate(SDL_Surface* screen, int w, int h) const -- 1.7.9.5