Skip to content

Commit

Permalink
Fix shadowed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Oct 4, 2024
1 parent 0abb68e commit 359a2f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/SDL_renderer_textengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,9 @@ static AtlasDrawSequence *CreateDrawSequence(TTF_DrawOperation *ops, int num_ops

float *texcoords = sequence->texcoords;
for (int i = 0; i < count; ++i) {
AtlasGlyph *glyph = (AtlasGlyph *)ops[i].copy.reserved;
SDL_memcpy(texcoords, glyph->texcoords, sizeof(glyph->texcoords));
texcoords += SDL_arraysize(glyph->texcoords);
AtlasGlyph *glyph2 = (AtlasGlyph *)ops[i].copy.reserved;
SDL_memcpy(texcoords, glyph2->texcoords, sizeof(glyph2->texcoords));
texcoords += SDL_arraysize(glyph2->texcoords);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/SDL_ttf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3845,8 +3845,8 @@ static bool LayoutTextWrapped(TTF_Text *text)
if (!lines) {
goto done;
}
for (int i = 0; i < (numLines - 1); ++i) {
lines[i] = -1;
for (int j = 0; j < (numLines - 1); ++j) {
lines[j] = -1;
}
}

Expand Down

0 comments on commit 359a2f5

Please sign in to comment.