From 41b86aff3e3b7d6d68ea37c5dc4461bf79373df9 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 11 Mar 2013 21:32:14 +0100 Subject: [PATCH] Avoid displaying "Can't display japanese title" just for a TM sign --- android/jni/MenuScreens.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/jni/MenuScreens.cpp b/android/jni/MenuScreens.cpp index 8c3fbf941..fa99c76d9 100644 --- a/android/jni/MenuScreens.cpp +++ b/android/jni/MenuScreens.cpp @@ -238,7 +238,8 @@ void InGameMenuScreen::render() { DrawBackground(1.0f); const char *title; - if (UTF8StringHasNonASCII(game_title.c_str())) { + // Try to ignore (tm) etc. + if (UTF8StringNonASCIICount(game_title.c_str()) > 2) { title = "(can't display japanese title)"; } else { title = game_title.c_str();