mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 04:18:48 +02:00
LCL-fpgui: Disable compiler define causing writeln() IO errors under Windows. Issue #35478, patch from Graeme.
git-svn-id: trunk@61123 -
This commit is contained in:
parent
98ea746922
commit
182c72e0da
@ -37,7 +37,7 @@ function KeycodeToWindowsVirtKey(KeyCode: word): Byte;
|
||||
function DebugMessage(msg: TfpgMessageRec): string;
|
||||
|
||||
implementation
|
||||
{$DEFINE FPGUIDEBUGCOLOR}
|
||||
{.$DEFINE FPGUIDEBUGCOLOR}
|
||||
{
|
||||
Converts from TColor to TfpgColor
|
||||
|
||||
@ -48,12 +48,17 @@ var
|
||||
RGBColor: TColorRef;
|
||||
RGBTriple: fpg_base.TRGBTriple;
|
||||
begin
|
||||
if (AColor and $FF000000)<>0 then begin
|
||||
if AColor=clDefault then begin
|
||||
if (AColor and $FF000000)<>0 then
|
||||
begin
|
||||
if AColor=clDefault then
|
||||
begin
|
||||
Result:=fpg_base.clWindowBackground;
|
||||
exit;
|
||||
end else begin
|
||||
if (AColor and $80000000)<>0 then begin
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (AColor and $80000000)<>0 then
|
||||
begin
|
||||
Result:=GetSysColorRGB(AColor and $FF);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user