add dirty hack for kana being clipped at the right edge of the info panel

This commit is contained in:
DeaTh-G 2025-02-17 19:45:22 +01:00
parent d556bc1a81
commit 46fa569725

View file

@ -1585,6 +1585,13 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax)
SetVerticalMarqueeFade({ clipRectMin.x, clipRectMin.y + Scale(5.5f) }, clipRectMax, Scale(10), Scale(10)); 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 DrawRubyAnnotatedText
( (
g_seuratFont, g_seuratFont,