NSRange glyphRange = [sm_cocoaNSLayoutManager glyphRangeForTextContainer:sm_cocoaNSTextContainer];
NSRect usedRect = [sm_cocoaNSLayoutManager usedRectForTextContainer:sm_cocoaNSTextContainer];
if(x)
- *x=usedRect.size.width;
+ *x=(int)usedRect.size.width;
if(y)
- *y=usedRect.size.height;
+ *y=(int)usedRect.size.height;
if(descent)
*descent=0;
if(externalLeading)
{
NSRect contentRect = [[GetNSBox() contentView] frame];
NSRect thisRect = [m_cocoaNSView frame];
- *borderTop = thisRect.size.height - (contentRect.origin.y+contentRect.size.height);
- *borderOther = thisRect.size.width - (contentRect.origin.x+contentRect.size.width);
- int nextBorder = contentRect.origin.y;
+ *borderTop = (int)(thisRect.size.height - (contentRect.origin.y+contentRect.size.height));
+ *borderOther = (int)(thisRect.size.width - (contentRect.origin.x+contentRect.size.width));
+ int nextBorder = (int)contentRect.origin.y;
if(nextBorder > *borderOther)
*borderOther = nextBorder;
- nextBorder = contentRect.origin.x;
+ nextBorder = (int)contentRect.origin.x;
if(nextBorder > *borderOther)
*borderOther = nextBorder;
}