mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[BOOTVID] Fix drawing strings on top of the bitmap (#2936)
Also fix VGA pixel drawing. CORE-15896
This commit is contained in:
parent
9d2ecd3a13
commit
4d54b8ce69
2 changed files with 7 additions and 2 deletions
|
@ -43,8 +43,11 @@ SetPixel(
|
|||
/* Select the bitmask register and write the mask */
|
||||
__outpw(VGA_BASE_IO_PORT + GRAPH_ADDRESS_PORT, (PixelMask[Left & 7] << 8) | IND_BIT_MASK);
|
||||
|
||||
/* Read the current pixel value and add our color */
|
||||
WRITE_REGISTER_UCHAR(PixelPosition, READ_REGISTER_UCHAR(PixelPosition) & Color);
|
||||
/* Dummy read to load latch registers */
|
||||
(VOID)READ_REGISTER_UCHAR(PixelPosition);
|
||||
|
||||
/* Set the new color */
|
||||
WRITE_REGISTER_UCHAR(PixelPosition, Color);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -94,6 +94,8 @@ PrepareForSetPixel(VOID)
|
|||
do { \
|
||||
/* Select the bitmask register and write the mask */ \
|
||||
__outpw(VGA_BASE_IO_PORT + GRAPH_ADDRESS_PORT, ((_PixelMask) << 8) | IND_BIT_MASK); \
|
||||
/* Dummy read to load latch registers */ \
|
||||
(VOID)READ_REGISTER_UCHAR((_PixelPtr)); \
|
||||
/* Set the new color */ \
|
||||
WRITE_REGISTER_UCHAR((_PixelPtr), (UCHAR)(_TextColor)); \
|
||||
} while (0);
|
||||
|
|
Loading…
Reference in a new issue