mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 19:45:23 -04:00
Fix http:// urls causing underline to be drawn wrongly. (Thanks BPzeBanshee)
This commit is contained in:
parent
c797909e76
commit
88215acf1d
@ -116,13 +116,14 @@ namespace ClassicalSharp {
|
|||||||
int height = PtToPx( args.Font.Size, boxSize );
|
int height = PtToPx( args.Font.Size, boxSize );
|
||||||
int offset = ShadowOffset( args.Font.Size );
|
int offset = ShadowOffset( args.Font.Size );
|
||||||
int col = FastColour.White.ToArgb();
|
int col = FastColour.White.ToArgb();
|
||||||
|
|
||||||
float point = args.Font.Size;
|
float point = args.Font.Size;
|
||||||
string text = args.Text;
|
string text = args.Text;
|
||||||
if( args.UseShadow ) height += offset;
|
if( args.UseShadow ) height += offset;
|
||||||
|
int startX = x;
|
||||||
|
|
||||||
for( int yy = height - offset; yy < height; yy++ ) {
|
for( int yy = height - offset; yy < height; yy++ ) {
|
||||||
int* dstRow = dst.GetRowPtr( yy + yOffset );
|
int* dstRow = dst.GetRowPtr( yy + yOffset );
|
||||||
int startX = x;
|
|
||||||
|
|
||||||
for( int i = 0; i < text.Length; i++ ) {
|
for( int i = 0; i < text.Length; i++ ) {
|
||||||
char c = text[i];
|
char c = text[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user