Skip to content

Commit

Permalink
fontatlas: modify tStr and tStrPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Sep 19, 2021
1 parent 27c97a5 commit 8e4dcef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FontAtlasProsessor.go
Expand Up @@ -171,13 +171,13 @@ func tStr(str string) string {
// Register string pointer to font atlas builder.
// Note only register strings that will be displayed on the UI.
func tStrPtr(str *string) *string {
tStr(*str)
*str = tStr(*str)
return str
}

func tStrSlice(str []string) []string {
for _, s := range str {
tStr(s)
for i, s := range str {
str[i] = tStr(s)
}

return str
Expand Down

0 comments on commit 8e4dcef

Please sign in to comment.