Fixed width tables for charset OXPs.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1895 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2008-12-06 16:17:44 +00:00
parent 1b092b002d
commit 957482cd77

View File

@ -170,7 +170,7 @@ static inline NSRect ScaleRect(NSRect rect, NSPoint scale)
NSPoint point = NSMakePoint((x * 32.0 + self.offsetX) * scale.x, (y * 32.0 + self.offsetY) * scale.y);
[string drawAtPoint:point withAttributes:attrs];
NSNumber *width = [NSNumber numberWithFloat:[string sizeWithAttributes:attrs].width / 4.0];
NSNumber *width = [NSNumber numberWithFloat:[string sizeWithAttributes:attrs].width / (4.0 * scale.x)];
if (value < 32)
{
[widths replaceObjectAtIndex:value withObject:width];