diff --git a/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch b/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch index c2bfb66f101..7170d31ba9e 100644 --- a/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch +++ b/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch @@ -8,7 +8,7 @@ Subject: [PATCH] Remove android-specific SDL hint 1 file changed, 4 deletions(-) diff --git a/src/input.cpp b/src/input.cpp -index b5ae21e..b6ac494 100644 +index b5ae21e24b802245e4d8a102b2ff820d4ceeea94..b6ac4947cc5f7991b7f8b79da34da24aee5d048d 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -89,10 +89,6 @@ void input_init(void) diff --git a/Ports/freedink/patches/0002-Add-required-const-to-char-declarations.patch b/Ports/freedink/patches/0002-Add-required-const-to-char-declarations.patch new file mode 100644 index 00000000000..2975ba7d6e2 --- /dev/null +++ b/Ports/freedink/patches/0002-Add-required-const-to-char-declarations.patch @@ -0,0 +1,26 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tim Ledbetter +Date: Wed, 2 Aug 2023 23:56:50 +0100 +Subject: [PATCH] Add required const to char* declarations + +--- + src/gfx_fonts.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/gfx_fonts.cpp b/src/gfx_fonts.cpp +index b00816e922a619e93f2ce9f3d4e202da0da9fa36..2cedd8af5fd99edf7a31ea7b6eeeabe09ede180c 100644 +--- a/src/gfx_fonts.cpp ++++ b/src/gfx_fonts.cpp +@@ -293,10 +293,10 @@ void set_font_color(int no, int r, int g, int b) + */ + void setup_font(TTF_Font *font) + { +- char *familyname = TTF_FontFaceFamilyName(font); ++ const char *familyname = TTF_FontFaceFamilyName(font); + if(familyname) + log_info("The family name of the face in the font is: %s", familyname); +- char *stylename = TTF_FontFaceStyleName(font); ++ const char *stylename = TTF_FontFaceStyleName(font); + if(stylename) + log_info("The name of the face in the font is: %s", stylename); + log_info("The font max height is: %d", TTF_FontHeight(font)); diff --git a/Ports/freedink/patches/ReadMe.md b/Ports/freedink/patches/ReadMe.md index af93bae9515..9d2b6af1e3c 100644 --- a/Ports/freedink/patches/ReadMe.md +++ b/Ports/freedink/patches/ReadMe.md @@ -5,3 +5,8 @@ Remove android-specific SDL hint +## `0002-Add-required-const-to-char-declarations.patch` + +Add required const to char* declarations + +