[FREELDR]

- Correctly check for vertical retrace in PcVideoSync. CID 513066.

svn path=/trunk/; revision=73636
This commit is contained in:
Thomas Faber 2017-01-30 13:50:10 +00:00
parent d41a3f0e64
commit ceeeea30e1

View file

@ -1089,7 +1089,7 @@ PcVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue)
VOID VOID
PcVideoSync(VOID) PcVideoSync(VOID)
{ {
while (1 == (READ_PORT_UCHAR((UCHAR*)VIDEOPORT_VERTICAL_RETRACE) & 0x08)) while ((READ_PORT_UCHAR((UCHAR*)VIDEOPORT_VERTICAL_RETRACE) & 0x08))
{ {
/* /*
* Keep reading the port until bit 3 is clear * Keep reading the port until bit 3 is clear
@ -1099,7 +1099,7 @@ PcVideoSync(VOID)
*/ */
} }
while (0 == (READ_PORT_UCHAR((UCHAR*)VIDEOPORT_VERTICAL_RETRACE) & 0x08)) while (!(READ_PORT_UCHAR((UCHAR*)VIDEOPORT_VERTICAL_RETRACE) & 0x08))
{ {
/* /*
* Keep reading the port until bit 3 is set * Keep reading the port until bit 3 is set