diff --git a/applications/lazimageeditor/DLBitmap.pas b/applications/lazimageeditor/DLBitmap.pas index 937b55817..71c9dd410 100644 --- a/applications/lazimageeditor/DLBitmap.pas +++ b/applications/lazimageeditor/DLBitmap.pas @@ -16,7 +16,11 @@ type rgbtAlpha: byte; end; PRGBATriple = ^TRGBATriple; + {$ifdef MSWINDOWS} + TRGBATriple = tagRGBTRIPLE; + {$else} TRGBATriple = tagRGBATRIPLE; + {$endif} PRGBATripleArray = ^TRGBATripleArray; TRGBATripleArray = array[word] of TRGBATriple; @@ -86,11 +90,7 @@ implementation constructor TDLBitmap.Create; begin inherited; - {$ifdef MSWINDOWS} - PixelFormat := pf32bit; - {$else} PixelFormat := pf24bit; - {$endif} FIntfImgA := TLazIntfImage.Create(0, 0); end;