* gnu/gcj/xlib/natFont.cc (getAscent): Correctly access "ascent"
field.
(getDescent): Likewise, for "descent".
From-SVN: r67695
+2003-06-09 Tom Tromey <tromey@redhat.com>
+
+ * gnu/gcj/xlib/natFont.cc (getAscent): Correctly access "ascent"
+ field.
+ (getDescent): Likewise, for "descent".
+
2003-06-09 Scott Gilbertson <scottg@mantatest.com>
* gnu/gcj/xlib/natFont.cc (getMaxAscent): adjusted return value.
if (fontStruct->min_byte1==0 && fontStruct->min_char_or_byte2<=(unsigned)'O')
returnValue = fontStruct
->per_char[(unsigned)'O'-fontStruct->min_char_or_byte2]
- ->ascent;
+ .ascent;
return returnValue+1; // +1 to include the baseline
}
if (fontStruct->min_byte1==0 && fontStruct->min_char_or_byte2<=(unsigned)'y')
returnValue = fontStruct
->per_char[(unsigned)'y'-fontStruct->min_char_or_byte2]
- ->descent;
+ .descent;
return returnValue-1; // -1 to exclude the baseline
}