1
0
Fork 0

Silence a number of switch warnings in vga_xga

In total, 28 warnings are removed by adding these few default cases.
This commit is contained in:
Patryk Obara 2019-11-23 23:48:35 +01:00 committed by Patryk Obara
parent 64671a888c
commit f105697165

View file

@ -987,6 +987,8 @@ void XGA_SetDualReg(Bit32u& reg, Bitu val) {
reg = (reg&0xffff0000)|(val&0x0000ffff);
xga.control1 ^= 0x10;
break;
default:
break;
}
}
@ -1001,6 +1003,8 @@ Bitu XGA_GetDualReg(Bit32u reg) {
xga.control1 ^= 0x10;
if (xga.control1 & 0x10) return reg&0x0000ffff;
else return reg>>16;
default:
break;
}
return 0;
}