Skip to content

Commit

Permalink
Fixed bug #970
Browse files Browse the repository at this point in the history
 Tobias Leich      2010-03-11 03:27:50 PST

Hi there, I actually do the bindings for SDL_perl to SDL_ttf and have noticed a
bug.

In TTF_RenderUTF8_Solid the BOM is set to the first Uint16, but in the
following line it gets overwritten.
  • Loading branch information
slouken committed Mar 25, 2010
1 parent 1f8d2a7 commit c7ff9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDL_ttf.c
Expand Up @@ -1288,7 +1288,7 @@ SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font,
return(NULL);
}
*unicode_text = UNICODE_BOM_NATIVE;
UTF8_to_UNICODE(unicode_text, text, unicode_len);
UTF8_to_UNICODE(unicode_text+1, text, unicode_len);

/* Render the new text */
textbuf = TTF_RenderUNICODE_Solid(font, unicode_text, fg);
Expand Down

0 comments on commit c7ff9ae

Please sign in to comment.