remove obsolete type conversions that messed with pas2c
authorsheepluva
Tue, 04 Feb 2014 14:04:24 +0100
changeset 10103 9c24233ca1c5
parent 10102 bab8a3cccdf8
child 10104 cb0b750bd8a3
remove obsolete type conversions that messed with pas2c
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Tue Feb 04 13:47:43 2014 +0100
+++ b/hedgewars/uStore.pas	Tue Feb 04 14:04:24 2014 +0100
@@ -1258,13 +1258,13 @@
 // TODO: Recheck height/position calculation
 
 // get caption's dimensions
-TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(caption), @i, @j);
+TTF_SizeUTF8(Fontz[font].Handle, caption, @i, @j);
 // width adds 36 px (image + space)
 w:= i + 36 + wa;
 h:= j + ha;
 
 // get sub caption's dimensions
-TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(subcaption), @i, @j);
+TTF_SizeUTF8(Fontz[font].Handle, subcaption, @i, @j);
 // width adds 36 px (image + space)
 if w < (i + 36 + wa) then
     w:= i + 36 + wa;
@@ -1288,7 +1288,7 @@
 if extra <> '' then
     begin
     // get extra label's dimensions
-    TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(extra), @i, @j);
+    TTF_SizeUTF8(Fontz[font].Handle, extra, @i, @j);
     if w < (i + wa) then
         w:= i + wa;
     inc(h, j + ha);