mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Merge pull request #20413 from hrydgard/ampersand-handling-fix
Remove left-behind ampersand merging from atlas text-drawing codepath
This commit is contained in:
2 files changed
+1
-7
No files matched your search
@@ -518,9 +518,6 @@ void DrawBuffer::MeasureText(FontID font, std::string_view text, float *w, float
|
||||
continue;
|
||||
} else if (cval == '\t') {
|
||||
cval = ' ';
|
||||
} else if (cval == '&' && utf.peek() != '&') {
|
||||
// Ignore lone ampersands
|
||||
continue;
|
||||
}
|
||||
const AtlasChar *c = atlasfont->getChar(cval);
|
||||
if (c) {
|
||||
@@ -659,9 +656,6 @@ void DrawBuffer::DrawText(FontID font, std::string_view text, float x, float y,
|
||||
continue;
|
||||
} else if (cval == '\t') {
|
||||
cval = ' ';
|
||||
} else if (cval == '&' && utf.peek() != '&') {
|
||||
// Ignore lone ampersands
|
||||
continue;
|
||||
}
|
||||
const AtlasChar *ch = atlasfont->getChar(cval);
|
||||
if (!ch)
|
||||
|
||||
+1
-1
Submodule ext/glslang updated: 30dd81a21c...50e0708ec3.
Reference in new issue
Block a user