1
0
Fork 0

Moved vga retrace handling.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@619
This commit is contained in:
Sjoerd van der Berg 2003-01-05 12:08:12 +00:00
parent 6a3be16d00
commit 4bcf247a00

View file

@ -21,7 +21,6 @@
#include "pic.h"
#include "vga.h"
static Bit8u flip=0;
static Bit32u keep_vretrace;
static bool keeping=false;
@ -101,18 +100,6 @@ static Bit8u read_p3cc(Bit32u port) {
return p3c2data;
}
static void EndRetrace(void) {
vga.config.retrace=false;
}
void VGA_StartRetrace(void) {
/* Setup a timer to destroy the vertical retrace bit in a few microseconds */
vga.config.real_start=vga.config.display_start;
vga.config.retrace=true;
PIC_AddEvent(EndRetrace,667);
}
void VGA_SetupMisc(void) {
IO_RegisterReadHandler(0x3da,read_p3da,"VGA Input Status 1");
IO_RegisterReadHandler(0x3ba,read_p3da,"VGA Input Status 1");