[BOOTVID] Fix definition of GetFontPtr().

This commit is contained in:
Hermès Bélusca-Maïto 2022-04-28 03:08:57 +02:00
parent 3812996042
commit 7b956a0a1f
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -68,10 +68,10 @@ extern const RGBQUAD 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 GetFontPtr(_Char) (&VidpFontData[(_Char) * BOOTCHAR_HEIGHT] + BOOTCHAR_HEIGHT - 1)
# define FONT_PTR_DELTA (-1)
#else
# define GetFontPtr(_Char) &VidpFontData[_Char * BOOTCHAR_HEIGHT];
# define GetFontPtr(_Char) (&VidpFontData[(_Char) * BOOTCHAR_HEIGHT])
# define FONT_PTR_DELTA (1)
#endif