Misc fixes and float->CGFloat updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@40246 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-11-29 18:56:27 +00:00
parent 2cb655c463
commit 3397273582
4 changed files with 7 additions and 7 deletions

View file

@ -79,7 +79,7 @@ extern unsigned long XGFontPropULong(Display *dpy, XFontStruct *font_struct,
- (void) drawGlyphs: (const NSGlyph *) glyphs length: (int) len
onDisplay: (Display*) xdpy drawable: (Drawable) draw
with: (GC) xgcntxt at: (XPoint) xp;
- (float) widthOfGlyphs: (const NSGlyph *) glyphs length: (int) len;
- (CGFloat) widthOfGlyphs: (const NSGlyph *) glyphs length: (int) len;
@end

View file

@ -408,7 +408,7 @@ Ones(unsigned int n)
len,
&extents);
return extents.width;
return (CGFloat)extents.width;
}
- (NSMultibyteGlyphPacking)glyphPacking

View file

@ -241,7 +241,7 @@ static BOOL XGInitAtoms(Display *dpy)
- (CGFloat) widthOf: (const char*) s length: (int) len
{
return XTextWidth(font_info, s, len);
return (CGFloat)XTextWidth(font_info, s, len);
}
- (CGFloat) widthOfGlyphs: (const NSGlyph *) glyphs length: (int) len
@ -254,7 +254,7 @@ static BOOL XGInitAtoms(Display *dpy)
buf[i] = glyphs[i];
}
return XTextWidth(font_info, buf, len);
return (CGFloat)XTextWidth(font_info, buf, len);
}
- (void) setActiveFor: (Display*) xdpy gc: (GC) xgcntxt

View file

@ -106,7 +106,7 @@ cache_name()
if ([mgr fileExistsAtPath: path isDirectory: &flag] == NO || flag == NO)
{
NSLog(@"Library directory '%@' not available!", path);
return NO;
return nil;
}
path = [path stringByAppendingPathComponent: @"Fonts"];
if ([mgr fileExistsAtPath: path] == NO)
@ -116,7 +116,7 @@ cache_name()
if ([mgr fileExistsAtPath: path isDirectory: &flag] == NO || flag == NO)
{
NSLog(@"Fonts directory '%@' not available!", path);
return NO;
return nil;
}
path = [path stringByAppendingPathComponent: @"Cache"];
if ([mgr fileExistsAtPath: path] == NO)
@ -126,7 +126,7 @@ cache_name()
if ([mgr fileExistsAtPath: path isDirectory: &flag] == NO || flag == NO)
{
NSLog(@"Fonts directory '%@' not available!", path);
return NO;
return nil;
}
cacheName = [path stringByAppendingPathComponent: file_name];
RETAIN(cacheName);