From f75ad038bd03777c2dbd90435847f81b8f902b77 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 3 Jan 2007 18:51:25 +0000 Subject: [PATCH] Fix for auto4 compilation on non-win32 Originally committed to SVN as r694. --- aegisub/auto4_base.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/auto4_base.cpp b/aegisub/auto4_base.cpp index 4e4c6d12a..7f2cfe56d 100644 --- a/aegisub/auto4_base.cpp +++ b/aegisub/auto4_base.cpp @@ -143,9 +143,9 @@ namespace Automation4 { if (style->spacing) { // If there's inter-character spacing, kerning info must not be used, so calculate width per character // NOTE: Is kerning actually done either way?! - for (unsigned int i = 0; i < intext.length(); i++) { + for (unsigned int i = 0; i < text.length(); i++) { int a, b, c, d; - thedc.GetTextExtent(intext[i], &a, &b, &c, &d); + thedc.GetTextExtent(text[i], &a, &b, &c, &d); width += a + spacing; height = b > height ? b : height; descent = c > descent ? c : descent; @@ -153,7 +153,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 - thedc.GetTextExtent(intext, &width, &height, &descent, &extlead); + thedc.GetTextExtent(text, &width, &height, &descent, &extlead); } #endif