mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 00:58:04 +02:00
LCL: Fix FPC_FullVersion text for FPC 3.0.4. Now 30004, was 30400.
git-svn-id: trunk@62703 -
This commit is contained in:
parent
08b5b4a244
commit
6a5c733584
@ -135,7 +135,7 @@ begin
|
||||
try
|
||||
jpeg.LoadFromFile(filename);
|
||||
jpeg.CompressionQuality := SbQuality.Position;
|
||||
{$IF FPC_FullVersion >= 30400}
|
||||
{$IF FPC_FullVersion >= 30004}
|
||||
jpeg.GrayScale := CbGrayScale.Checked;
|
||||
{$IFEND}
|
||||
jpeg.ProgressiveEncoding := CbProgressive.Checked;
|
||||
@ -171,7 +171,7 @@ begin
|
||||
LblProgressive.Caption := '';
|
||||
BtnReadClick(nil);
|
||||
SbQualityChange(nil);
|
||||
{$IF FPC_FullVersion >= 30400}
|
||||
{$IF FPC_FullVersion >= 30004}
|
||||
CbGrayScale.Enabled := false;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
@ -1780,7 +1780,7 @@ type
|
||||
class function GetFileExtensions: string; override;
|
||||
public
|
||||
property CompressionQuality: TJPEGQualityRange read FQuality write SetCompressionQuality;
|
||||
property GrayScale: Boolean read FGrayScale {$IF FPC_FullVersion >= 30400} write SetGrayScale{$IFEND};
|
||||
property GrayScale: Boolean read FGrayScale {$IF FPC_FullVersion >= 30004} write SetGrayScale{$IFEND};
|
||||
property MinHeight: Integer read FMinHeight write FMinHeight;
|
||||
property MinWidth: Integer read FMinWidth write FMinWidth;
|
||||
property ProgressiveEncoding: boolean read FProgressiveEncoding write SetProgressiveEncoding;
|
||||
|
@ -95,7 +95,7 @@ begin
|
||||
if not(AWriter is TFPWriterJPEG) then Exit;
|
||||
TFPWriterJPEG(AWriter).ProgressiveEncoding := ProgressiveEncoding;
|
||||
TFPWriterJPEG(AWriter).CompressionQuality := CompressionQuality;
|
||||
{$IF FPC_FullVersion >= 30400}
|
||||
{$IF FPC_FullVersion >= 30004}
|
||||
TFPWriterJPEG(AWriter).GrayScale := GrayScale;
|
||||
{$IFEND}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user