projects
/
drnoksnes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b0d63
)
added restriction in arm sw scaler
author
Javier S. Pedro
<maemo@javispedro.com>
Mon, 28 Sep 2009 19:21:24 +0000
(21:21 +0200)
committer
Javier S. Pedro
<maemo@javispedro.com>
Mon, 28 Sep 2009 19:21:24 +0000
(21:21 +0200)
platform/sdlv.cpp
patch
|
blob
|
history
diff --git
a/platform/sdlv.cpp
b/platform/sdlv.cpp
index
149d091
..
1d2a578
100644
(file)
--- 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