mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Fix servers in servers list in launcher on OSX/Linux not being clipped properly.
This commit is contained in:
parent
f03148555e
commit
f1b0ce972c
@ -46,6 +46,8 @@ namespace ClassicalSharp {
|
|||||||
GetTextParts( args.Text );
|
GetTextParts( args.Text );
|
||||||
|
|
||||||
Brush shadowBrush = GetOrCreateBrush( Color.Black );
|
Brush shadowBrush = GetOrCreateBrush( Color.Black );
|
||||||
|
StringFormatFlags flags = format.FormatFlags;
|
||||||
|
format.FormatFlags |= StringFormatFlags.NoWrap;
|
||||||
format.Trimming = StringTrimming.EllipsisCharacter;
|
format.Trimming = StringTrimming.EllipsisCharacter;
|
||||||
float textX = x;
|
float textX = x;
|
||||||
|
|
||||||
@ -61,6 +63,7 @@ namespace ClassicalSharp {
|
|||||||
textX += g.MeasureString( part.Text, args.Font, Int32.MaxValue, format ).Width;
|
textX += g.MeasureString( part.Text, args.Font, Int32.MaxValue, format ).Width;
|
||||||
}
|
}
|
||||||
format.Trimming = StringTrimming.None;
|
format.Trimming = StringTrimming.None;
|
||||||
|
format.FormatFlags = flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DrawBitmappedText( ref DrawTextArgs args, int x, int y ) {
|
public override void DrawBitmappedText( ref DrawTextArgs args, int x, int y ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user