aboutsummaryrefslogtreecommitdiff
path: root/backends/midi
diff options
context:
space:
mode:
authorEugene Sandulenko2004-11-28 21:31:46 +0000
committerEugene Sandulenko2004-11-28 21:31:46 +0000
commit1947aa48accc4fee082a0df0a7f1ec4dd0b29b2a (patch)
treee899940c05b017d875272e7c25dc472c722a9c38 /backends/midi
parent1ae87c0fbbbb38950e2364da212adeb96d464d0c (diff)
downloadscummvm-rg350-1947aa48accc4fee082a0df0a7f1ec4dd0b29b2a.tar.gz
scummvm-rg350-1947aa48accc4fee082a0df0a7f1ec4dd0b29b2a.tar.bz2
scummvm-rg350-1947aa48accc4fee082a0df0a7f1ec4dd0b29b2a.zip
Initialize palette for the progress bar
svn-id: r15945
Diffstat (limited to 'backends/midi')
-rw-r--r--backends/midi/mt32.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/midi/mt32.cpp b/backends/midi/mt32.cpp
index cd289ba2e8..aab81a3877 100644
--- a/backends/midi/mt32.cpp
+++ b/backends/midi/mt32.cpp
@@ -192,6 +192,16 @@ static int MT32_Report(void *userData, MT32Emu::ReportType type, const void *rep
break;
case MT32Emu::ReportType_progressInit:
if (((MidiDriver_MT32 *)userData)->_initialising) {
+ const byte dummy_palette[] = {
+ 0, 0, 0, 0,
+ 0, 0, 171, 0,
+ 0, 171, 0, 0,
+ 0, 171, 171, 0,
+ 171, 0, 0, 0
+ };
+
+ g_system->setPalette(dummy_palette, 0, 5);
+
drawProgress(*((const float *)reportData));
return eatSystemEvents();
}