Revert "???"

This reverts commit 5fa977fb90.
This commit is contained in:
Layla Marchant 2020-07-25 10:58:42 -04:00
parent 5fa977fb90
commit 91dcd81268
1 changed files with 2 additions and 6 deletions

View File

@ -296,7 +296,6 @@ int gfx_renderUnicodeBase(const char *in, int x, int y, int real_x, int fontColo
char testStr[STRMAX]; char testStr[STRMAX];
char remainingStr[STRMAX]; char remainingStr[STRMAX];
PangoLogAttr logAttrs[STRMAX]; PangoLogAttr logAttrs[STRMAX];
PangoAnalysis *analysis;
int nLogAttrs; int nLogAttrs;
int i; int i;
SDL_Rect area; SDL_Rect area;
@ -357,16 +356,13 @@ int gfx_renderUnicodeBase(const char *in, int x, int y, int real_x, int fontColo
{ {
nLogAttrs = strlen(remainingStr) + 1; nLogAttrs = strlen(remainingStr) + 1;
pango_get_log_attrs(remainingStr, strlen(remainingStr), -1, NULL, logAttrs, nLogAttrs); pango_get_log_attrs(remainingStr, strlen(remainingStr), -1, NULL, logAttrs, nLogAttrs);
pango_default_break(
remainingStr, strlen(remainingStr), NULL, logAttrs, nLogAttrs);
nBreakPoints = 0; nBreakPoints = 0;
for (i = 0; i < nLogAttrs; i++) for (i = 0; i < nLogAttrs; i++)
{ {
if (logAttrs[i].is_line_break if (logAttrs[i].is_line_break)
&& logAttrs[i].is_char_break)
{ {
breakPoints[nBreakPoints] = i; breakPoints[nBreakPoints] = i - 1;
nBreakPoints++; nBreakPoints++;
} }
} }