mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
carbon: fix compilation due to GetStockObject result type changes
git-svn-id: trunk@26600 -
This commit is contained in:
parent
33081ba014
commit
59f9b13b95
@ -1897,7 +1897,7 @@ end;
|
||||
function TCarbonMemo.GetLine(AIndex: Integer): String;
|
||||
var
|
||||
AStart, AEnd: TXNOffset;
|
||||
Data: Handle;
|
||||
Data: MacOSAll.Handle;
|
||||
W: WideString;
|
||||
begin
|
||||
Result := '';
|
||||
|
@ -307,7 +307,7 @@ var
|
||||
ColSpace : CGColorSpaceRef;
|
||||
data : array of byte;
|
||||
iconHnd : IconFamilyHandle;
|
||||
tmpHnd : Handle;
|
||||
tmpHnd : MacOSAll.Handle;
|
||||
i,c,sz : Integer;
|
||||
dataType : Integer;
|
||||
maskType : Integer;
|
||||
@ -385,9 +385,9 @@ begin
|
||||
end;
|
||||
|
||||
OSError(
|
||||
GetIconRefFromIconFamilyPtr( iconHnd^^, GetHandleSize(Handle(iconHnd)), Result),
|
||||
GetIconRefFromIconFamilyPtr( iconHnd^^, GetHandleSize(MacOSAll.Handle(iconHnd)), Result),
|
||||
'GetIconRefFromBitmap', 'GetIconRefFromIconFamilyPtr');
|
||||
DisposeHandle(Handle(iconHnd));
|
||||
DisposeHandle(MacOSAll.Handle(iconHnd));
|
||||
end;
|
||||
|
||||
function GetIconRefFromImageList(Images: TCustomImageList; AIndex: Integer; WantedIconSize: Integer): IconRef;
|
||||
|
@ -1878,7 +1878,7 @@ end;
|
||||
|
||||
Retrieves a handle to one of the predefined stock objects
|
||||
------------------------------------------------------------------------------}
|
||||
function TCarbonWidgetSet.GetStockObject(Value: Integer): LongInt;
|
||||
function TCarbonWidgetSet.GetStockObject(Value: Integer): THandle;
|
||||
begin
|
||||
Result := 0;
|
||||
|
||||
|
@ -124,7 +124,7 @@ function GetRgnBox(RGN : HRGN; lpRect : PRect) : Longint; override;
|
||||
function GetScrollBarSize(Handle: HWND; BarKind: Integer): integer; override;
|
||||
function GetScrollbarVisible(Handle: HWND; SBStyle: Integer): boolean; override;
|
||||
function GetScrollInfo(Handle: HWND; SBStyle: Integer; var ScrollInfo: TScrollInfo): Boolean; override;
|
||||
function GetStockObject(Value: Integer): LongInt; override;
|
||||
function GetStockObject(Value: Integer): THandle; override;
|
||||
function GetSysColor(NIndex: Integer): DWORD; override;
|
||||
function GetSystemMetrics(NIndex: Integer): Integer; override;
|
||||
function GetTextColor(DC: HDC) : TColorRef; Override;
|
||||
|
Loading…
Reference in New Issue
Block a user