mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 19:29:31 +02:00
IdeDebugger: change value formatter for AlphaColor. Don't force registration of IdentToInt. See Issue #40772
This commit is contained in:
parent
4c6f93909c
commit
37315271a4
@ -350,6 +350,11 @@ begin
|
||||
Result := ( Assigned(IntToIdentFn) and
|
||||
IntToIdentFn(integer(c), APrintedValue)
|
||||
);
|
||||
{$IF FPC_FULLVERSION>030202}
|
||||
if not Result then
|
||||
Result := AlphaColorToIdent(integer(c), APrintedValue);
|
||||
{$ENDIF}
|
||||
|
||||
if not Result then
|
||||
APrintedValue := '';
|
||||
end;
|
||||
@ -377,9 +382,9 @@ end;
|
||||
initialization
|
||||
ValueFormatterRegistry.Add(TIdeDbgValueFormatterRegistryColor);
|
||||
ValueFormatterRegistry.Add(TIdeDbgValueFormatterRegistryColorAlpha);
|
||||
{$IF FPC_FULLVERSION>030202}
|
||||
RegisterAlphaColorIntegerConsts;
|
||||
{$ENDIF}
|
||||
//{$IF FPC_FULLVERSION>030202}
|
||||
//RegisterAlphaColorIntegerConsts;
|
||||
//{$ENDIF}
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user