1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

UTF8 changes to consistently use int8 for codepoint widths

This commit is contained in:
Brian Fiete 2024-10-26 06:25:39 -04:00
parent 0e2f49fd12
commit 1226810984
3 changed files with 7 additions and 7 deletions

View file

@ -516,7 +516,7 @@ namespace Beefy.theme.dark
int underlinePos = label.IndexOf('&');
if (underlinePos == -1)
return false;
char32 underlineC = label.GetChar32(underlinePos + 1).0;
char32 underlineC = label.GetChar32(underlinePos + 1).c;
underlineC = underlineC.ToUpper;
return ((char32)keyCode == underlineC);
}
@ -530,7 +530,7 @@ namespace Beefy.theme.dark
label.Append(str, 0, underlinePos);
float underlineX = g.mFont.GetWidth(label);
char32 underlineC = str.GetChar32(underlinePos + 1).0;
char32 underlineC = str.GetChar32(underlinePos + 1).c;
float underlineWidth = g.mFont.GetWidth(underlineC);
FontMetrics fm = .();