From 7237e4429155cfcf589b93ec840b9f3de80ebb24 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Wed, 2 Sep 2009 08:45:09 +0000 Subject: [PATCH] Switch from long to wxCoord to remove warnings. Originally committed to SVN as r3463. --- aegisub/src/auto4_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/auto4_base.cpp b/aegisub/src/auto4_base.cpp index a3b45cdc0..e32d228a8 100644 --- a/aegisub/src/auto4_base.cpp +++ b/aegisub/src/auto4_base.cpp @@ -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;