mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
add dirty hack for kana being clipped at the right edge of the info panel
This commit is contained in:
parent
d556bc1a81
commit
46fa569725
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue