mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[FREELDR]
- Correctly check for vertical retrace in PcVideoSync. CID 513066. svn path=/trunk/; revision=73636
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user