mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Don't pretend that NSGlyph * and unichar * are the same.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17078 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c4122018aa
commit
e04b025363
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-06-30 18:11 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/xlib/XGFont.m (-xCharStructForGlyph:): Don't try to treat
|
||||
NSGlyph pointers as unichar pointers; break on non-little-endian
|
||||
systems.
|
||||
|
||||
2003-06-29 17:34 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/art/ftfont.m (-initWithFontName:matrix:screenFont:): Round
|
||||
|
|
|
@ -366,8 +366,9 @@ static BOOL XGInitAtoms(Display *dpy)
|
|||
unsigned int size = 1;
|
||||
unsigned char c = 0;
|
||||
unsigned char *dst = &c;
|
||||
unichar ch = glyph;
|
||||
|
||||
GSFromUnicode(&dst, &size, (unichar*)&glyph, 1,
|
||||
GSFromUnicode(&dst, &size, &ch, 1,
|
||||
mostCompatibleStringEncoding, 0, 0);
|
||||
index = c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue