mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:40:48 +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
ebd9e79a82
commit
b311bf3e81
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSStringDrawing.m: drawRun() use GSFromUnicode() API for
|
||||
conversion.
|
||||
|
||||
Fri May 10 11:24:38 2002 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Source/NSRulerView.m ([NSRulerView -dealloc]): Do not release the
|
||||
|
|
|
@ -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