anchor.diff:    KM_CommonTypes, KM_Defaults, KM_Pics, KM_Render, KM_TextLibrary
     {$IFDEF FPC}, zstream {$ENDIF}
     {$IFDEF WDC}, ZLib {$ENDIF}
  -  {$IFDEF FPC}, BGRABitmap {$ENDIF};
  +  {$IFDEF FPC}, BGRABitmap, BGRABitmapTypes {$ENDIF};
   
   type
     TRXUsage = (ruMenu, ruGame); //Where sprites are used
  
positive.code:     if InRange(I, 0, SizeY-1) and InRange(K, 0, SizeX-1) then
        Png.Pixels[K,I] := $FF00FF;//}
  
      Png.SaveToFile(aFolder + Format('%d_%.4d.png', [Byte(fRT)+1, ID]));
  
      //Export Flag values
      if fRXData.HasMask[ID] then
      begin
        for I := 0 to SizeY - 1 do
        for K := 0 to SizeX - 1 do
          Png.Pixels[K,I] := fRXData.Mask[ID, I*SizeX + K] * 65793;
  
        Png.SaveToFile(aFolder + Format('%d_%.4da.png', [Byte(fRT)+1, ID]));
      end;
    end;
  
    Png.Free;
  end;
  
  
  
negative.code: var
    I, K: Word;
    T: Cardinal;
    {$IFDEF WDC} Png: TPNGObject; {$ENDIF}
    {$IFDEF FPC} po: TBGRABitmap; {$ENDIF}
    Folder: string;
  begin
    if EXPORT_SPRITE_ATLASES then
  