added vc7 files and fixed warnings. vc6 is no longer supported by me

svn-id: r9077
This commit is contained in:
Paweł Kołodziejski 2003-07-19 14:26:25 +00:00
parent e68d371e62
commit 2d48186c03
9 changed files with 1810 additions and 18 deletions

View file

@ -1141,10 +1141,10 @@ int Scumm::readSoundResourceSmallHeader(int type, int idx) {
*ptr++ = 480 & 0xFF;
memcpy(ptr, "MTrk", 4); ptr += 4;
*ptr++ = ((sizeof(OLD256_MIDI_HACK) + size + 7) >> 24) & 0xFF;
*ptr++ = ((sizeof(OLD256_MIDI_HACK) + size + 7) >> 16) & 0xFF;
*ptr++ = ((sizeof(OLD256_MIDI_HACK) + size + 7) >> 8) & 0xFF;
*ptr++ = ((sizeof(OLD256_MIDI_HACK) + size + 7) ) & 0xFF;
*ptr++ = (byte)(((sizeof(OLD256_MIDI_HACK) + size + 7) >> 24) & 0xFF);
*ptr++ = (byte)(((sizeof(OLD256_MIDI_HACK) + size + 7) >> 16) & 0xFF);
*ptr++ = (byte)(((sizeof(OLD256_MIDI_HACK) + size + 7) >> 8) & 0xFF);
*ptr++ = (byte)(((sizeof(OLD256_MIDI_HACK) + size + 7) ) & 0xFF);
// Conver the ticks into a MIDI tempo.
dw = (500000 * 256) / ticks;