hedgewars/uRenderUtils.pas
changeset 4647 20b982afbe6e
parent 4611 445d382cd401
child 4976 088d40d8aba2
equal deleted inserted replaced
4588:5ef5415c4ee1 4647:20b982afbe6e
   173 
   173 
   174 function RenderSpeechBubbleTex(s: ansistring; SpeechType: Longword; font: THWFont): PTexture;
   174 function RenderSpeechBubbleTex(s: ansistring; SpeechType: Longword; font: THWFont): PTexture;
   175 var textWidth, textHeight, x, y, w, h, i, j, pos, prevpos, line, numLines, edgeWidth, edgeHeight, cornerWidth, cornerHeight: LongInt;
   175 var textWidth, textHeight, x, y, w, h, i, j, pos, prevpos, line, numLines, edgeWidth, edgeHeight, cornerWidth, cornerHeight: LongInt;
   176     finalSurface, tmpsurf, rotatedEdge: PSDL_Surface;
   176     finalSurface, tmpsurf, rotatedEdge: PSDL_Surface;
   177     rect: TSDL_Rect;
   177     rect: TSDL_Rect;
   178     chars: set of char = [#9,' ','.',';',':','?','!',','];
   178     chars: set of char = [#9,' ',';',':','?','!',','];
   179     substr: shortstring;
   179     substr: shortstring;
   180     edge, corner, tail: TSPrite;
   180     edge, corner, tail: TSPrite;
   181 begin
   181 begin
   182     case SpeechType of
   182     case SpeechType of
   183         1: begin;
   183         1: begin;