aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
authorJames Brown2004-11-13 04:33:33 +0000
committerJames Brown2004-11-13 04:33:33 +0000
commit2ae3166f2db47b7beb5225d57b5e271de33ab9cd (patch)
tree39990f576a436da88699af15d525e942a4a9f02e /base/main.cpp
parent628b02a9e8183001279c7ecbf59d38456993aa8c (diff)
downloadscummvm-rg350-2ae3166f2db47b7beb5225d57b5e271de33ab9cd.tar.gz
scummvm-rg350-2ae3166f2db47b7beb5225d57b5e271de33ab9cd.tar.bz2
scummvm-rg350-2ae3166f2db47b7beb5225d57b5e271de33ab9cd.zip
Add new clearScreen OSystem call. Currently only implemented in SDL backend. This call is currently only used for clearing the launcher screen to remove garbage from the main screen before reentering.
svn-id: r15799
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 1844bbdd63..7b6cf30176 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -195,6 +195,9 @@ static int launcherDialog(GameDetector &detector, OSystem *system) {
// to fix all backends to support it, if they don't already.
system->initSize(320, 200);
+ // Clear the main screen
+ system->clearScreen();
+
// FIXME - mouse cursors are currently always set via 8 bit data.
// Thus for now we need to setup a dummy palette. On the long run, we might
// want to add a setMouseCursor_overlay() method to OSystem, which would serve