Changeset 44 for trunk


Ignore:
Timestamp:
Nov 19, 2017, 10:59:54 AM (7 years ago)
Author:
chronos
Message:
  • Fixed: Removed compilation warnings.
  • Modified: Preparation for 1.0.0 version release.
Location:
trunk
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/BigMetro.lpi

    r42 r44  
    22<CONFIG>
    33  <ProjectOptions>
    4     <Version Value="9"/>
     4    <Version Value="10"/>
    55    <General>
    66      <SessionStorage Value="InProjectDir"/>
     
    1414      <EnableI18N LFM="False"/>
    1515    </i18n>
    16     <VersionInfo>
    17       <StringTable ProductVersion=""/>
    18     </VersionInfo>
    1916    <BuildModes Count="4">
    2017      <Item1 Name="Debug" Default="True"/>
     
    223220    </Linking>
    224221    <Other>
     222      <CompilerMessages>
     223        <IgnoredMessages idx5024="True"/>
     224      </CompilerMessages>
    225225      <CustomOptions Value="-dDEBUG"/>
    226226    </Other>
  • trunk/Forms/UFormMain.pas

    r42 r44  
    3333    procedure PaintBox1Resize(Sender: TObject);
    3434    procedure Timer1Timer(Sender: TObject);
    35   private
    36     procedure EraseBackground(DC: HDC); override;
    3735  public
    3836    Engine: TEngine;
     37    procedure EraseBackground(DC: HDC); override;
    3938  end;
    4039
  • trunk/Install/deb/debian/control

    r39 r44  
    33Section: utils
    44Priority: optional
    5 Standards-Version: 1.0.0
     5Standards-Version: 1.1.0
    66Build-Depends: fpc, lazarus, lcl, lcl-utils, debhelper (>= 8)
    77
  • trunk/Install/deb/debian/rules

    r39 r44  
    11#!/usr/bin/make -f
     2
     3# Set temporary HOME for lazarus primary config directory
     4export HOME=$(CURDIR)/tmphome
    25
    36ROOT = $(CURDIR)/debian/bigmetro
  • trunk/Install/win/BigMetro.iss

    r40 r44  
    44#define MyAppName "BigMetro"
    55#define MyAppNameShort "BigMetro"
    6 #define MyAppVersion "1.0-alfa"
     6#define MyAppVersion "1.1-alfa"
    77#define MyAppPublisher "Chronosoft"
    88#define MyAppPublisherShort "Chronosoft"
  • trunk/Install/win/build.bat

    r40 r44  
    1 set LAZARUSDIR=C:\lazarus
    2 
    3 %LAZARUSDIR%\lazbuild ..\BigMetro.lpi --build-mode="Windows 32-bit" --lazarusdir=%LAZARUSDIR%
    4 %LAZARUSDIR%\lazbuild ..\BigMetro.lpi --build-mode="Windows 64-bit" --lazarusdir=%LAZARUSDIR%
     1if not defined LAZDIR (
     2  set LAZDIR=C:\lazarus
     3)
     4%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Windows 32-bit" ..\..\BigMetro.lpi
     5%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Windows 64-bit" ..\..\BigMetro.lpi
    56
    67"c:\Program Files (x86)\Inno Setup 5\ISCC.exe" "BigMetro.iss"
  • trunk/UEngine.pas

    r41 r44  
    13061306procedure TEngine.ResizeView;
    13071307var
    1308   StationRect: TRect;
    13091308  NewPoint: TPoint;
    13101309begin
     
    15331532var
    15341533  I: Integer;
    1535   L: Integer;
    15361534  S: TStationShape;
    15371535begin
     
    20932091var
    20942092  Station: TMapStation;
    2095   Line: TMetroLine;
    2096   I: Integer;
    20972093  NewLine: TMetroLine;
    20982094  Track: TTrackLink;
     
    23902386    end;
    23912387
    2392     if ShowDistances then begin
     2388{    if ShowDistances then begin
    23932389      Canvas.Brush.Style := bsClear;
    23942390      Text := '';
     
    23972393      Canvas.TextOut(Position.X + StationSize div 2, Position.Y + StationSize div 2, Text);
    23982394    end;
     2395    }
    23992396  end;
    24002397
  • trunk/UGeometric.pas

    r38 r44  
    5353var
    5454  l2, t: Double;
    55   projection, tt: TPoint;
     55  tt: TPoint;
    5656begin
    5757  // Return minimum distance between line segment vw and point p
     
    7474    Exit;
    7575  end;
    76   //projection := v + t * (w - v);  // Projection falls on the segment
    7776  TT.X := Trunc(V.X + T * (W.X - V.X));
    7877  TT.Y := Trunc(V.Y + T * (W.Y - V.Y));
  • trunk/UMetaCanvas.pas

    r30 r44  
    66
    77uses
    8   Classes, SysUtils, Graphics, Contnrs, GraphMath, Types;
     8  Classes, SysUtils, Graphics, Contnrs, Types;
    99
    1010type
     
    124124    procedure DoLine (x1,y1,x2,y2:integer); override;
    125125    procedure DoTextOut(X, Y: Integer; Text: string); override;
    126     procedure TextOut(X,Y: Integer; const Text: String); override;
    127126    procedure DoRectangle(const Bounds: TRect); override;
    128127    procedure DoRectangleFill(const Bounds: TRect); override;
    129     procedure Polygon(Points: PPoint; NumPts: Integer; Winding: boolean = False); override;
    130128    procedure DoPolygon(const Points: array of TPoint); override;
    131129    procedure CreateHandle; override;
     130    procedure DoEllipse(const Bounds: TRect); override;
     131    procedure DoMoveTo(X, Y: Integer); override;
     132    procedure DoLineTo(X, Y: Integer); override;
     133  public
     134    Objects: TObjectList;
     135    procedure TextOut(X,Y: Integer; const Text: String); override;
     136    procedure Polygon(Points: PPoint; NumPts: Integer; Winding: boolean = False); override;
    132137    procedure Ellipse(x1, y1, x2, y2: Integer); override;
    133     procedure DoEllipse(const Bounds: TRect); override;
    134138    procedure StretchDraw(const DestRect: TRect; SrcGraphic: TGraphic); override;
    135139    function TextExtent(const Text: string): TSize; override;
    136     procedure DoMoveTo(X, Y: Integer); override;
    137     procedure DoLineTo(X, Y: Integer); override;
    138140    procedure Pie(EllipseX1, EllipseY1, EllipseX2, EllipseY2,
    139141      StartX, StartY, EndX, EndY: Integer); override;
    140   public
    141     Objects: TObjectList;
    142142    procedure SetSize(Size: TPoint);
    143143    procedure Reset;
Note: See TracChangeset for help on using the changeset viewer.