summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-11 16:37:53 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-11 16:37:53 +0200
commit17fe087ae5857fac0878d6fb8b6893d376d36603 (patch)
tree9ddbc4f482787d409dfdf5c6a6793e006b9841a3 /src
parentf3acc04e1b3fa7447b6c4b761a7132ecb0541d55 (diff)
downloadfpGUI-17fe087ae5857fac0878d6fb8b6893d376d36603.tar.xz
changed string parameter to TfpgString type
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_base.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index b6032caf..80133832 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -260,7 +260,7 @@ type
FFontRes: TfpgFontResourceBase;
function GetIsFixedWidth: boolean; virtual;
public
- function TextWidth(const txt: string): integer;
+ function TextWidth(const txt: TfpgString): integer;
function Ascent: integer;
function Descent: integer;
function Height: integer;
@@ -1806,7 +1806,7 @@ begin
Result := False;
end;
-function TfpgFontBase.TextWidth(const txt: string): integer;
+function TfpgFontBase.TextWidth(const txt: TfpgString): integer;
begin
if Length(txt) = 0 then
Result := 0