From 88215acf1de4a3b827b556697a64a85d1213e699 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 11 Apr 2016 18:50:01 +1000 Subject: [PATCH] Fix http:// urls causing underline to be drawn wrongly. (Thanks BPzeBanshee) --- ClassicalSharp/2D/Drawing/IDrawer2D.TextMC.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ClassicalSharp/2D/Drawing/IDrawer2D.TextMC.cs b/ClassicalSharp/2D/Drawing/IDrawer2D.TextMC.cs index 27a74e1f2..9ca49f8e7 100644 --- a/ClassicalSharp/2D/Drawing/IDrawer2D.TextMC.cs +++ b/ClassicalSharp/2D/Drawing/IDrawer2D.TextMC.cs @@ -116,13 +116,14 @@ namespace ClassicalSharp { int height = PtToPx( args.Font.Size, boxSize ); int offset = ShadowOffset( args.Font.Size ); int col = FastColour.White.ToArgb(); + float point = args.Font.Size; string text = args.Text; if( args.UseShadow ) height += offset; - + int startX = x; + for( int yy = height - offset; yy < height; yy++ ) { - int* dstRow = dst.GetRowPtr( yy + yOffset ); - int startX = x; + int* dstRow = dst.GetRowPtr( yy + yOffset ); for( int i = 0; i < text.Length; i++ ) { char c = text[i];