mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 08:50:27 +00:00
[FREELDR]
- Correctly check for vertical retrace in PcVideoSync. CID 513066. svn path=/trunk/; revision=73636
This commit is contained in:
parent
d41a3f0e64
commit
ceeeea30e1
1 changed files with 2 additions and 2 deletions
|
@ -1089,7 +1089,7 @@ PcVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue)
|
|||
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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue