Browse Source

* SysUtils unit moved to top of the uses clause to avoid conflicts on PByteArray type
defined in SysUtils and fpimgcmn
* integer replaced with LongWord in definition of TGetPixelFunc

mazen 22 years ago
parent
commit
8ae64efde5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      fcl/image/fpwritepng.pp

+ 3 - 3
fcl/image/fpwritepng.pp

@@ -18,11 +18,11 @@ unit FPWritePNG;
 
 
 interface
 interface
 
 
-uses classes, FPImage, FPImgCmn, PNGComn, ZStream, sysutils;
+uses sysutils, classes, FPImage, FPImgCmn, PNGComn, ZStream;
 
 
 type
 type
 
 
-  TGetPixelFunc = function (x,y : integer) : TColorData of object;
+  TGetPixelFunc = function (x,y : LongWord) : TColorData of object;
 
 
   TFPWriterPNG = class (TFPCustomImageWriter)
   TFPWriterPNG = class (TFPCustomImageWriter)
     private
     private
@@ -68,7 +68,7 @@ type
       procedure DetermineHeader (var AHeader : THeaderChunk); virtual;
       procedure DetermineHeader (var AHeader : THeaderChunk); virtual;
       function DetermineFilter (Current, Previous:PByteArray; linelength:longword):byte; virtual;
       function DetermineFilter (Current, Previous:PByteArray; linelength:longword):byte; virtual;
       procedure FillScanLine (y : integer; ScanLine : pByteArray); virtual;
       procedure FillScanLine (y : integer; ScanLine : pByteArray); virtual;
-      property ChunkDataBuffer : PByteArray read FChunk.data;
+      property ChunkDataBuffer : pByteArray read FChunk.data;
       property UsetRNS : boolean read FUsetRNS;
       property UsetRNS : boolean read FUsetRNS;
       property SingleTransparentColor : TFPColor read FTransparentColor;
       property SingleTransparentColor : TFPColor read FTransparentColor;
       property ThePalette : TFPPalette read FPalette;
       property ThePalette : TFPPalette read FPalette;