diff options
author | Eugene Sandulenko | 2004-11-28 21:31:46 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-11-28 21:31:46 +0000 |
commit | 1947aa48accc4fee082a0df0a7f1ec4dd0b29b2a (patch) | |
tree | e899940c05b017d875272e7c25dc472c722a9c38 /backends/midi | |
parent | 1ae87c0fbbbb38950e2364da212adeb96d464d0c (diff) | |
download | scummvm-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.cpp | 10 |
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(); } |