Browse Source

+ unicode fixes in TMenuBox.Draw

git-svn-id: branches/unicodekvm@48775 -
nickysn 4 years ago
parent
commit
b6d2c6ccb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fv/src/menus.inc

+ 1 - 1
packages/fv/src/menus.inc

@@ -1106,7 +1106,7 @@ BEGIN
             Byte(Color), 1) else
             Byte(Color), 1) else
          If (P^.Command <> 0) AND(P^.Param <> Sw_PString_Empty) Then
          If (P^.Command <> 0) AND(P^.Param <> Sw_PString_Empty) Then
          Begin
          Begin
-            MoveCStr(B[Size.X - 3 - Length(P^.Param Sw_PString_Deref)], P^.Param Sw_PString_Deref, Color);  { Add param chars }
+            MoveCStr(B[Size.X - 3 - CTextWidth(P^.Param Sw_PString_Deref)], P^.Param Sw_PString_Deref, Color);  { Add param chars }
             S := S + ' - ' + P^.Param Sw_PString_Deref;  { Add to string }
             S := S + ' - ' + P^.Param Sw_PString_Deref;  { Add to string }
          End;
          End;
          If (OldItem = Nil) OR (OldItem = P) OR
          If (OldItem = Nil) OR (OldItem = P) OR