From 46fa569725a1ae9ed2fbae7c7178cd697fbcec41 Mon Sep 17 00:00:00 2001 From: DeaTh-G Date: Mon, 17 Feb 2025 19:45:22 +0100 Subject: [PATCH] add dirty hack for kana being clipped at the right edge of the info panel --- UnleashedRecomp/ui/options_menu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 5d453412..ab078211 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -1585,6 +1585,13 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax) SetVerticalMarqueeFade({ clipRectMin.x, clipRectMin.y + Scale(5.5f) }, clipRectMax, Scale(10), Scale(10)); + // Dirty hack to disallow clipping on Japanese text + // whilst allowing annotations to go over the border + if (Config::Language == ELanguage::Japanese) + { + clipRectMax.x -= annotationFontSize; + } + DrawRubyAnnotatedText ( g_seuratFont,