Fix http:// urls causing underline to be drawn wrongly. (Thanks BPzeBanshee)

This commit is contained in:
UnknownShadow200 2016-04-11 18:50:01 +10:00
parent c797909e76
commit 88215acf1d

View File

@ -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];