diff options
author | Andre Heider | 2010-08-30 16:52:23 +0000 |
---|---|---|
committer | Andre Heider | 2010-08-30 16:52:23 +0000 |
commit | 2f3edeedc923d3a478f44762720fee27237fc897 (patch) | |
tree | 0cdf4361a785eb9c0d09e4412c60e0a34ee500d2 /backends/platform/wii/osystem_events.cpp | |
parent | 6d0902860740290159ac5c81d5b8594aefc17563 (diff) | |
download | scummvm-rg350-2f3edeedc923d3a478f44762720fee27237fc897.tar.gz scummvm-rg350-2f3edeedc923d3a478f44762720fee27237fc897.tar.bz2 scummvm-rg350-2f3edeedc923d3a478f44762720fee27237fc897.zip |
WII: Abuse pollEvent() to update the screen of skipped frames.
updateScreen() itself skips redraws when called too frequently. With
the right timing and number of consecutive calls this can result in
missing gfx updates, so lets abuse pollEvent() to check for overdue
redraws.
svn-id: r52456
Diffstat (limited to 'backends/platform/wii/osystem_events.cpp')
-rw-r--r-- | backends/platform/wii/osystem_events.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/wii/osystem_events.cpp b/backends/platform/wii/osystem_events.cpp index 488834fc20..5d0bca453f 100644 --- a/backends/platform/wii/osystem_events.cpp +++ b/backends/platform/wii/osystem_events.cpp @@ -300,6 +300,9 @@ bool OSystem_Wii::pollEvent(Common::Event &event) { return true; } + if (needsScreenUpdate()) + updateScreen(); + u32 bd = 0, bh = 0, bu = 0; if (PAD_ScanPads() & 1) { |