https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b956a0a1fd859db6b966…
commit 7b956a0a1fd859db6b96666ff34309ed09c08bef
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Apr 28 03:08:57 2022 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Dec 24 21:41:09 2023 +0100
[BOOTVID] Fix definition of GetFontPtr().
---
drivers/base/bootvid/precomp.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/base/bootvid/precomp.h b/drivers/base/bootvid/precomp.h
index c3c40a397be..d8ffc0306c9 100644
--- a/drivers/base/bootvid/precomp.h
+++ b/drivers/base/bootvid/precomp.h
@@ -61,18 +61,18 @@ extern const RGBQUAD VidpDefaultPalette[BV_MAX_COLORS];
#define RGB(r, g, b) ((RGBQUAD)(((UCHAR)(b) | ((USHORT)((UCHAR)(g))<<8)) |
(((ULONG)(UCHAR)(r))<<16)))
-#define GetRValue(quad) ((UCHAR)(((quad)>>16) & 0xFF))
-#define GetGValue(quad) ((UCHAR)(((quad)>>8) & 0xFF))
-#define GetBValue(quad) ((UCHAR)((quad) & 0xFF))
+#define GetRValue(quad) ((UCHAR)(((quad)>>16) & 0xFF))
+#define GetGValue(quad) ((UCHAR)(((quad)>>8) & 0xFF))
+#define GetBValue(quad) ((UCHAR)((quad) & 0xFF))
-#define InitializePalette() InitPaletteWithTable((PULONG)VidpDefaultPalette,
BV_MAX_COLORS)
+#define InitializePalette() InitPaletteWithTable((PULONG)VidpDefaultPalette,
BV_MAX_COLORS)
#ifdef CHAR_GEN_UPSIDE_DOWN
-# define GetFontPtr(_Char) &VidpFontData[_Char * BOOTCHAR_HEIGHT] + BOOTCHAR_HEIGHT -
1;
-# define FONT_PTR_DELTA (-1)
+# define GetFontPtr(_Char) (&VidpFontData[(_Char) * BOOTCHAR_HEIGHT] +
BOOTCHAR_HEIGHT - 1)
+# define FONT_PTR_DELTA (-1)
#else
-# define GetFontPtr(_Char) &VidpFontData[_Char * BOOTCHAR_HEIGHT];
-# define FONT_PTR_DELTA (1)
+# define GetFontPtr(_Char) (&VidpFontData[(_Char) * BOOTCHAR_HEIGHT])
+# define FONT_PTR_DELTA (1)
#endif
#endif /* _BOOTVID_PCH_ */