forked from mia/Aegisub
Switch from long to wxCoord to remove warnings.
Originally committed to SVN as r3463.
This commit is contained in:
parent
256671d666
commit
7237e44291
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ namespace Automation4 {
|
|||
}
|
||||
} else {
|
||||
// If the inter-character spacing should be zero, kerning info can (and must) be used, so calculate everything in one go
|
||||
long lwidth, lheight, ldescent, lextlead;
|
||||
wxCoord lwidth, lheight, ldescent, lextlead;
|
||||
thedc.GetTextExtent(text, &lwidth, &lheight, &ldescent, &lextlead);
|
||||
double scaling = fontsize / (double)(lheight>0?lheight:1); // semi-workaround for missing OS/2 table data for scaling
|
||||
width = lwidth*scaling; height = lheight*scaling; descent = ldescent*scaling; extlead = lextlead*scaling;
|
||||
|
|
Loading…
Reference in a new issue