From e7cf4d2dbd8894fa1e92e1484988c7ad1e582d65 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 8 Apr 2021 20:37:32 +0300
Subject: [PATCH] remove unnecessary consts from Find_GlyphByIndex definition
silences MSVC warnings:
1>d:\sdl_ttf\sdl_ttf.c(2376): warning C4028: formal parameter 3 different from declaration
1>d:\sdl_ttf\sdl_ttf.c(2376): warning C4028: formal parameter 4 different from declaration
1>d:\sdl_ttf\sdl_ttf.c(2376): warning C4028: formal parameter 5 different from declaration
1>d:\sdl_ttf\sdl_ttf.c(2376): warning C4028: formal parameter 6 different from declaration
---
SDL_ttf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SDL_ttf.c b/SDL_ttf.c
index e12eff7..a15a03a 100644
--- a/SDL_ttf.c
+++ b/SDL_ttf.c
@@ -2371,7 +2371,7 @@ static FT_Error Load_Glyph(TTF_Font *font, c_glyph *cached, int want, int transl
}
static SDL_INLINE int Find_GlyphByIndex(TTF_Font *font, FT_UInt idx,
- const int want_bitmap, const int want_pixmap, const int want_color, const int want_subpixel,
+ int want_bitmap, int want_pixmap, int want_color, int want_subpixel,
int translation, c_glyph **out_glyph, TTF_Image **out_image)
{
/* cache size is 256, get key by masking */