mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
PPGe: Correct double spacing in some save text.
This commit is contained in:
1 parent
9c9ace6e1a
commit
5f65c075e2
1 file changed
+2
-1
@@ -824,7 +824,8 @@ static PPGeTextDrawerImage PPGeGetTextImage(const char *text, int align, float s
|
||||
std::vector<uint8_t> bitmapData;
|
||||
textDrawer->SetFontScale(scale, scale);
|
||||
Bounds b(0, 0, maxWidth, 272.0f);
|
||||
textDrawer->DrawStringBitmapRect(bitmapData, im.entry, Draw::DataFormat::R8_UNORM, text, b, tdalign);
|
||||
std::string cleaned = ReplaceAll(text, "\r", "");
|
||||
textDrawer->DrawStringBitmapRect(bitmapData, im.entry, Draw::DataFormat::R8_UNORM, cleaned.c_str(), b, tdalign);
|
||||
|
||||
int bufwBytes = ((im.entry.bmWidth + 31) / 32) * 16;
|
||||
u32 sz = bufwBytes * im.entry.bmHeight;
|
||||
|
||||
Reference in new issue
Block a user