mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 22:17:27 +00:00
Standardise API for character conversion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13630 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
54bceb64e7
commit
083eb26bd3
2 changed files with 10 additions and 1 deletions
|
@ -248,7 +248,11 @@ drawRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
|
|||
if ((enc != NSASCIIStringEncoding) &&
|
||||
(enc != NSUnicodeStringEncoding))
|
||||
{
|
||||
buf[0] = encode_unitochar(run->glyphs[i].glyph, enc);
|
||||
unsigned int size = 1;
|
||||
unsigned char c = 0;
|
||||
unsigned char *dst = buf;
|
||||
|
||||
GSFromUnicode(&dst, &size, &(run->glyphs[i].glyph), 1, enc, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue