aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostas Nakos2009-01-04 20:37:24 +0000
committerKostas Nakos2009-01-04 20:37:24 +0000
commit5ac9de093832a9d3a680ec3681a7f58107ba7114 (patch)
treed03c765bc569b1c27bcf65df306167e35e1e5768
parent41b7f714e95f83ec23398154f2ffdf8050d44b68 (diff)
downloadscummvm-rg350-5ac9de093832a9d3a680ec3681a7f58107ba7114.tar.gz
scummvm-rg350-5ac9de093832a9d3a680ec3681a7f58107ba7114.tar.bz2
scummvm-rg350-5ac9de093832a9d3a680ec3681a7f58107ba7114.zip
had forgotten the case of a rect being partially off the top of the screen (and not the bottom at the same time). fixes bug #2470228
svn-id: r35733
-rw-r--r--backends/platform/wince/wince-sdl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp
index 831d4c61be..b891a83689 100644
--- a/backends/platform/wince/wince-sdl.cpp
+++ b/backends/platform/wince/wince-sdl.cpp
@@ -1646,7 +1646,9 @@ void OSystem_WINCE3::internUpdateScreen() {
if (routy + routh < 0) continue;
if (routy < 0) {
routh += routy;
+ r->y -= routy * _scaleFactorYd / _scaleFactorYm;
routy = 0;
+ r->h = routh * _scaleFactorYd / _scaleFactorYm;
}
if (_orientationLandscape) {
if (routy > _platformScreenWidth) continue;