This commit is contained in:
dborth 2009-11-27 08:56:38 +00:00
parent 357f2c7bb6
commit 54912b1c01
2 changed files with 6 additions and 1 deletions

View File

@ -549,7 +549,10 @@ static void OPL_CallBack(Bitu len) {
module->handler->Generate( module->mixerChan, len );
//Disable the sound generation after 30 seconds of silence
if ((PIC_Ticks - module->lastUsed) > 30000) {
module->mixerChan->Enable(false);
Bitu i;
for (i=0xb0;i<0xb9;i++) if (module->cache[i]&0x20||module->cache[i+0x100]&0x20) break;
if (i==0xb9) module->mixerChan->Enable(false);
else module->lastUsed = PIC_Ticks;
}
}

View File

@ -801,6 +801,8 @@ static void VGA_VerticalTimer(Bitu /*val*/) {
#endif
switch (vga.mode) {
case M_EGA:
if (!(vga.crtc.mode_control&0x1)) vga.draw.linear_mask &= ~0x10000;
else vga.draw.linear_mask |= 0x10000;
case M_LIN4:
vga.draw.byte_panning_shift = 8;
vga.draw.address += vga.draw.bytes_skip;