Jelajahi Sumber

Fix wrong cursor pos for 64 bit systems, hopefully fixes bug report 23957

git-svn-id: trunk@23704 -
pierre 12 tahun lalu
induk
melakukan
eeae77bfc2
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      ide/wcedit.pas
  2. 2 2
      ide/wviews.pas

+ 1 - 1
ide/wcedit.pas

@@ -774,7 +774,7 @@ procedure TIndicator.Draw;
 var
 var
   Color: Byte;
   Color: Byte;
   Frame: Char;
   Frame: Char;
-  L: array[0..1] of Longint;
+  L: array[0..1] of PtrInt;
   S: String[15];
   S: String[15];
   B: TDrawBuffer;
   B: TDrawBuffer;
 begin
 begin

+ 2 - 2
ide/wviews.pas

@@ -250,7 +250,7 @@ function FormatStrF(const Format: string; var Params): string;
 function FormatStrStr(const Format, Param: string): string;
 function FormatStrStr(const Format, Param: string): string;
 function FormatStrStr2(const Format, Param1,Param2: string): string;
 function FormatStrStr2(const Format, Param1,Param2: string): string;
 function FormatStrStr3(const Format, Param1,Param2,Param3: string): string;
 function FormatStrStr3(const Format, Param1,Param2,Param3: string): string;
-function FormatStrInt(const Format: string; L: longint): string;
+function FormatStrInt(const Format: string; L: PtrInt): string;
 
 
 const UserButtonName : array[1..4] of string[40] = ('User~1~','User~2~','User~3~','User~4~');
 const UserButtonName : array[1..4] of string[40] = ('User~1~','User~2~','User~3~','User~4~');
 
 
@@ -2400,7 +2400,7 @@ begin
   FormatStrStr3:=S;
   FormatStrStr3:=S;
 end;
 end;
 
 
-function FormatStrInt(const Format: string; L: longint): string;
+function FormatStrInt(const Format: string; L: PtrInt): string;
 var S: string;
 var S: string;
 begin
 begin
   FormatStr(S,Format,L);
   FormatStr(S,Format,L);