Lower bound on speech text width for proper rendering
authornemo
Wed, 26 Aug 2009 20:32:27 +0000
changeset 2332 351abbbb12f3
parent 2331 e4941a7986d6
child 2333 f53a208e9637
Lower bound on speech text width for proper rendering
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Tue Aug 25 20:54:11 2009 +0000
+++ b/hedgewars/uStore.pas	Wed Aug 26 20:32:27 2009 +0000
@@ -728,6 +728,7 @@
 
 if length(s) = 0 then s:= '...';
 TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(s), w, h);
+if w<8 then w:= 8;
 j:= 0;
 if (length(s) > 20) then
     begin