Changeset 170 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 23, 2017, 5:02:49 PM (7 years ago)
Author:
chronos
Message:
  • Modified: UGeometry unit rewritten to use generics and define own TPoint and TRect types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r166 r170  
    88  Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, Dialogs, Forms,
    99  UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator,
    10   URegistry, ULastOpenedList, Registry, Menus;
     10  URegistry, ULastOpenedList, Registry, Menus, UGeometry;
    1111
    1212type
     
    419419  LastOpenedList1.AddItem(FileName);
    420420  with Core.CurrentClient do
    421     View.DestRect := Bounds(0, 0, FormMain.PaintBox1.Width, FormMain.PaintBox1.Height);
     421    View.DestRect := TRect.CreateBounds(TPoint.Create(0, 0),
     422      TPoint.Create(FormMain.PaintBox1.Width, FormMain.PaintBox1.Height));
    422423  FormMain.AZoomAll.Execute;
    423424  FormMain.Redraw;
Note: See TracChangeset for help on using the changeset viewer.