From 5f65c075e257ff3060fabeb0bb84f49caf71b8f7 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 11 Mar 2020 06:37:18 -0700 Subject: [PATCH] PPGe: Correct double spacing in some save text. --- Core/Util/PPGeDraw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp index 397ee429eb..354d77ab86 100644 --- a/Core/Util/PPGeDraw.cpp +++ b/Core/Util/PPGeDraw.cpp @@ -824,7 +824,8 @@ static PPGeTextDrawerImage PPGeGetTextImage(const char *text, int align, float s std::vector 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;