added restriction in arm sw scaler
authorJavier S. Pedro <maemo@javispedro.com>
Mon, 28 Sep 2009 19:21:24 +0000 (21:21 +0200)
committerJavier S. Pedro <maemo@javispedro.com>
Mon, 28 Sep 2009 19:21:24 +0000 (21:21 +0200)
platform/sdlv.cpp

index 149d091..1d2a578 100644 (file)
@@ -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