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:
juha 2019-05-03 19:45:26 +00:00
parent 98ea746922
commit 182c72e0da

View File

@ -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;