Changeset 13 for trunk/Platform/Base


Ignore:
Timestamp:
Sep 25, 2017, 2:48:08 PM (7 years ago)
Author:
chronos
Message:
  • Added: Drawing relative to Canvas. In case of Window drawing relative to Window.
  • Modified: Use custom TPoint and TRectangle if possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Platform/Base/UPlatformBase.pas

    r9 r13  
    77uses
    88  Classes, SysUtils, UFileSystem, UKernel, syncobjs, UThreadEx, UMemory,
    9   DateUtils, UDevice, Contnrs, Graphics, Forms, UScreen, UScheduler;
     9  DateUtils, UDevice, Contnrs, Graphics, Forms, UScreen, UScheduler, UGraphics;
    1010
    1111type
     
    107107  Modes.Clear;
    108108  NewMode := TVideoMode.Create;
    109   NewMode.Size := Point(320, 240);
    110   NewMode.ColorFormat := cfRGBA8;
    111   Modes.Add(NewMode);
    112   NewMode := TVideoMode.Create;
    113   NewMode.Size := Point(640, 480);
     109  NewMode.Size := TPoint.Create(320, 240);
     110  NewMode.ColorFormat := cfRGBA8;
     111  Modes.Add(NewMode);
     112  NewMode := TVideoMode.Create;
     113  NewMode.Size := TPoint.Create(640, 480);
    114114  NewMode.ColorFormat := cfRGBA8;
    115115  Modes.Add(NewMode);
     
    235235  Task := TBaseTask(inherited AddTask(Name, EntryPoint));
    236236  if Running then Task.Thread.Start;
     237  Result := Task;
    237238end;
    238239
Note: See TracChangeset for help on using the changeset viewer.