From 0e87a77e5426c593deed3b0da175e4f643288def Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 26 Apr 2023 14:14:41 -0700 Subject: [PATCH] K_DrawMapThumbnail, K_DrawLikeMapThumbnail: correct argument types to fixed_t --- src/k_hud.c | 4 ++-- src/k_hud.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/k_hud.c b/src/k_hud.c index 145d9f502..d23c107a4 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -1150,7 +1150,7 @@ static void K_initKartHUD(void) } } -void K_DrawMapThumbnail(INT32 x, INT32 y, INT32 width, UINT32 flags, UINT16 map, UINT8 *colormap) +void K_DrawMapThumbnail(fixed_t x, fixed_t y, fixed_t width, UINT32 flags, UINT16 map, const UINT8 *colormap) { patch_t *PictureOfLevel = NULL; @@ -1170,7 +1170,7 @@ void K_DrawMapThumbnail(INT32 x, INT32 y, INT32 width, UINT32 flags, UINT16 map, K_DrawLikeMapThumbnail(x, y, width, flags, PictureOfLevel, colormap); } -void K_DrawLikeMapThumbnail(INT32 x, INT32 y, INT32 width, UINT32 flags, patch_t *patch, UINT8 *colormap) +void K_DrawLikeMapThumbnail(fixed_t x, fixed_t y, fixed_t width, UINT32 flags, patch_t *patch, const UINT8 *colormap) { if (flags & V_FLIP) x += width; diff --git a/src/k_hud.h b/src/k_hud.h index 464737059..5bdc53a9e 100644 --- a/src/k_hud.h +++ b/src/k_hud.h @@ -42,8 +42,8 @@ void K_drawKartHUD(void); void K_drawKartFreePlay(void); void K_drawKartTimestamp(tic_t drawtime, INT32 TX, INT32 TY, INT32 splitflags, UINT8 mode); void K_DrawTabRankings(INT32 x, INT32 y, playersort_t *tab, INT32 scorelines, INT32 whiteplayer, INT32 hilicol); -void K_DrawMapThumbnail(INT32 x, INT32 y, INT32 width, UINT32 flags, UINT16 map, UINT8 *colormap); -void K_DrawLikeMapThumbnail(INT32 x, INT32 y, INT32 width, UINT32 flags, patch_t *patch, UINT8 *colormap); +void K_DrawMapThumbnail(fixed_t x, fixed_t y, fixed_t width, UINT32 flags, UINT16 map, const UINT8 *colormap); +void K_DrawLikeMapThumbnail(fixed_t x, fixed_t y, fixed_t width, UINT32 flags, patch_t *patch, const UINT8 *colormap); void K_drawTargetHUD(const vector3_t *origin, player_t *player); void K_drawButton(fixed_t x, fixed_t y, INT32 flags, patch_t *button[2], boolean pressed); void K_drawButtonAnim(INT32 x, INT32 y, INT32 flags, patch_t *button[2], tic_t animtic);