mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 10:02:08 -05:00
Fix servers in servers list in launcher on OSX/Linux not being clipped properly.
This commit is contained in:
parent
f03148555e
commit
f1b0ce972c
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,8 @@ namespace ClassicalSharp {
|
|||
GetTextParts( args.Text );
|
||||
|
||||
Brush shadowBrush = GetOrCreateBrush( Color.Black );
|
||||
StringFormatFlags flags = format.FormatFlags;
|
||||
format.FormatFlags |= StringFormatFlags.NoWrap;
|
||||
format.Trimming = StringTrimming.EllipsisCharacter;
|
||||
float textX = x;
|
||||
|
||||
|
@ -61,6 +63,7 @@ namespace ClassicalSharp {
|
|||
textX += g.MeasureString( part.Text, args.Font, Int32.MaxValue, format ).Width;
|
||||
}
|
||||
format.Trimming = StringTrimming.None;
|
||||
format.FormatFlags = flags;
|
||||
}
|
||||
|
||||
public override void DrawBitmappedText( ref DrawTextArgs args, int x, int y ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue