Fix irritating typo

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-05-16 13:22:10 +00:00
parent f4868d3a43
commit 1139d62bb5
6 changed files with 18 additions and 18 deletions

View file

@ -172,7 +172,7 @@ NSString *win32_font_family(NSString *fontName);
{
}
- (void) draw:(const char*)s lenght: (int)len
- (void) draw:(const char*)s length: (int)len
onDC: (HDC)hdc at: (POINT)p
{
HFONT old;

View file

@ -865,7 +865,7 @@ HBITMAP GSCreateBitmap(HDC hDC, int pixelsWide, int pixelsHigh,
}
p = GSWindowPointToMS(self, current);
[(WIN32FontInfo*)font draw: s lenght: strlen(s)
[(WIN32FontInfo*)font draw: s length: strlen(s)
onDC: hDC at: p];
[self releaseHDC: hDC];
}

View file

@ -271,7 +271,7 @@ static NSArray *faFromFc(FcPattern *pat)
return extents.width;
}
- (float) widthOfGlyphs: (const NSGlyph *) glyphs lenght: (int) len
- (float) widthOfGlyphs: (const NSGlyph *) glyphs length: (int) len
{
XGlyphInfo extents;
unichar buf[len];
@ -383,7 +383,7 @@ static NSArray *faFromFc(FcPattern *pat)
xp.x, xp.y, (XftChar16*)cstr, length);
}
- (void) drawGlyphs: (const NSGlyph *) glyphs lenght: (int) len
- (void) drawGlyphs: (const NSGlyph *) glyphs length: (int) len
onDisplay: (Display*) xdpy drawable: (Drawable) draw
with: (GC) xgcntxt at: (XPoint) xp
{
@ -403,7 +403,7 @@ static NSArray *faFromFc(FcPattern *pat)
xp.x, xp.y, (XftChar16*)buf, len);
}
- (void) draw: (const char*) s lenght: (int) len
- (void) draw: (const char*) s length: (int) len
onDisplay: (Display*) xdpy drawable: (Drawable) draw
with: (GC) xgcntxt at: (XPoint) xp
{
@ -427,7 +427,7 @@ static NSArray *faFromFc(FcPattern *pat)
}
}
- (float) widthOf: (const char*) s lenght: (int) len
- (float) widthOf: (const char*) s length: (int) len
{
XGlyphInfo extents;

View file

@ -202,7 +202,7 @@ static BOOL XGInitAtoms(Display *dpy)
XDrawString(xdpy, draw, xgcntxt, xp.x, xp.y, cstr, length);
}
- (void) draw: (const char*) s lenght: (int) len
- (void) draw: (const char*) s length: (int) len
onDisplay: (Display*) xdpy drawable: (Drawable) draw
with: (GC) xgcntxt at: (XPoint) xp
{
@ -210,7 +210,7 @@ static BOOL XGInitAtoms(Display *dpy)
XDrawString(xdpy, draw, xgcntxt, xp.x, xp.y, s, len);
}
- (void) drawGlyphs: (const NSGlyph *) glyphs lenght: (int) len
- (void) drawGlyphs: (const NSGlyph *) glyphs length: (int) len
onDisplay: (Display*) xdpy drawable: (Drawable) draw
with: (GC) xgcntxt at: (XPoint) xp
{
@ -235,12 +235,12 @@ static BOOL XGInitAtoms(Display *dpy)
return XTextWidth(font_info, cstr, length);
}
- (float) widthOf: (const char*) s lenght: (int) len
- (float) widthOf: (const char*) s length: (int) len
{
return XTextWidth(font_info, s, len);
}
- (float) widthOfGlyphs: (const NSGlyph *) glyphs lenght: (int) len
- (float) widthOfGlyphs: (const NSGlyph *) glyphs length: (int) len
{
unsigned char buf[len];
int i;

View file

@ -198,7 +198,7 @@ static BOOL char_struct_for_glyph(NSGlyph glyph, XFontSet font_set,
}
- (void) drawGlyphs: (const NSGlyph *)glyphs
lenght: (int)len
length: (int)len
onDisplay: (Display *)dpy
drawable: (Drawable)win
with: (GC)gc
@ -215,7 +215,7 @@ static BOOL char_struct_for_glyph(NSGlyph glyph, XFontSet font_set,
}
- (float) widthOfGlyphs: (const NSGlyph *)glyphs
lenght: (int)len
length: (int)len
{
UTF8Str ustr;
float val;

View file

@ -1236,11 +1236,11 @@ static Region emptyRegion;
[self setColor: &fillColor state: COLOR_FILL];
len = strlen(s);
width = [(XGFontInfo *)font widthOf: s lenght: len];
width = [(XGFontInfo *)font widthOf: s length: len];
xp = XGWindowPointToX(self, [path currentPoint]);
// Hack: Only draw when alpha is not zero
if (drawingAlpha == NO || fillColor.field[AINDEX] != 0.0)
[(XGFontInfo *)font draw: s lenght: len
[(XGFontInfo *)font draw: s length: len
onDisplay: XDPY drawable: draw
with: xgcntxt at: xp];
@ -1249,7 +1249,7 @@ static Region emptyRegion;
NSAssert(alpha_buffer, NSInternalInconsistencyException);
[self setAlphaColor: fillColor.field[AINDEX]];
[(XGFontInfo *)font draw: s lenght: len
[(XGFontInfo *)font draw: s length: len
onDisplay: XDPY drawable: alpha_buffer
with: agcntxt at: xp];
}
@ -1283,11 +1283,11 @@ static Region emptyRegion;
if ((cstate & COLOR_FILL) == 0)
[self setColor: &fillColor state: COLOR_FILL];
width = [(XGFontInfo *)font widthOfGlyphs: glyphs lenght: length];
width = [(XGFontInfo *)font widthOfGlyphs: glyphs length: length];
xp = XGWindowPointToX(self, [path currentPoint]);
// Hack: Only draw when alpha is not zero
if (drawingAlpha == NO || fillColor.field[AINDEX] != 0.0)
[(XGFontInfo *)font drawGlyphs: glyphs lenght: length
[(XGFontInfo *)font drawGlyphs: glyphs length: length
onDisplay: XDPY drawable: draw
with: xgcntxt at: xp];
@ -1296,7 +1296,7 @@ static Region emptyRegion;
NSAssert(alpha_buffer, NSInternalInconsistencyException);
[self setAlphaColor: fillColor.field[AINDEX]];
[(XGFontInfo *)font drawGlyphs: glyphs lenght: length
[(XGFontInfo *)font drawGlyphs: glyphs length: length
onDisplay: XDPY drawable: alpha_buffer
with: agcntxt at: xp];
}