Fix seabios vga divide exception

This commit is contained in:
copy 2016-02-05 14:18:44 +01:00
parent ca08a86c92
commit 28c0715162

View file

@ -1225,7 +1225,14 @@ VGAScreen.prototype.svga_register_read = function(n)
return this.svga_bank_offset >>> 16;
case 6:
// virtual width
return this.screen_width;
if(this.screen_width)
{
return this.screen_width;
}
else
{
return 1; // seabios/windows98 divide exception
}
case 8:
// x offset
return 0;