mirror of
https://github.com/retro100/dosbox-wii.git
synced 2024-12-26 02:21:49 +01:00
sync
This commit is contained in:
parent
357f2c7bb6
commit
54912b1c01
@ -549,7 +549,10 @@ static void OPL_CallBack(Bitu len) {
|
|||||||
module->handler->Generate( module->mixerChan, len );
|
module->handler->Generate( module->mixerChan, len );
|
||||||
//Disable the sound generation after 30 seconds of silence
|
//Disable the sound generation after 30 seconds of silence
|
||||||
if ((PIC_Ticks - module->lastUsed) > 30000) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -801,6 +801,8 @@ static void VGA_VerticalTimer(Bitu /*val*/) {
|
|||||||
#endif
|
#endif
|
||||||
switch (vga.mode) {
|
switch (vga.mode) {
|
||||||
case M_EGA:
|
case M_EGA:
|
||||||
|
if (!(vga.crtc.mode_control&0x1)) vga.draw.linear_mask &= ~0x10000;
|
||||||
|
else vga.draw.linear_mask |= 0x10000;
|
||||||
case M_LIN4:
|
case M_LIN4:
|
||||||
vga.draw.byte_panning_shift = 8;
|
vga.draw.byte_panning_shift = 8;
|
||||||
vga.draw.address += vga.draw.bytes_skip;
|
vga.draw.address += vga.draw.bytes_skip;
|
||||||
|
Loading…
Reference in New Issue
Block a user