From d200b08e6dbda7951a56be228e648c63e67cd333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= <8659494+mhaeuser@users.noreply.github.com> Date: Sat, 27 Mar 2021 00:00:50 +0100 Subject: [PATCH] OpenCanopy: Remove deprecated label truncation code --- Platform/OpenCanopy/BitmapFont.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Platform/OpenCanopy/BitmapFont.c b/Platform/OpenCanopy/BitmapFont.c index c3de1147..119858f4 100644 --- a/Platform/OpenCanopy/BitmapFont.c +++ b/Platform/OpenCanopy/BitmapFont.c @@ -557,31 +557,10 @@ BmfGetTextInfo ( return NULL; } - /*if (Width > MaxWidth) { - break; - }*/ - TextInfo->Chars[Index] = Char; InfoPairs[Index - 1] = Pair; } - if (Index != StringLen) { - CONST BMF_KERNING_PAIR *PeriodPair; - - Char = BmfGetChar (Context, '.'); - if (Char == NULL) { - FreePool (TextInfo); - return NULL; - } - - CurWidth = 2 * (INT32)Char->xadvance + (INT32)Char->xoffset + (INT32)Char->width; - - PeriodPair = BmfGetKerningPair (Context, '.', '.'); - if (PeriodPair != NULL) { - CurWidth += 2 * (INT32)PeriodPair->amount; - } - } - Width += ((INT32)TextInfo->Chars[Index - 1]->xoffset + (INT32)TextInfo->Chars[Index - 1]->width - (INT32)TextInfo->Chars[Index - 1]->xadvance); InfoPairs[Index - 1] = NULL;