Changeset 118 for trunk/NoTerm.pas


Ignore:
Timestamp:
Feb 3, 2018, 3:29:17 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Set Bitmap size at once.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NoTerm.pas

    r111 r118  
    147147        TInitModuleData(Data).Flags := aiThreaded;
    148148        Shade := TBitmap.Create;
    149         Shade.Width := 64;
    150         Shade.Height := 64;
     149        Shade.SetSize(64, 64);
    151150        for x := 0 to 63 do
    152151          for y := 0 to 63 do
     
    156155              Shade.Canvas.Pixels[x, y] := $000000;
    157156        State := TBitmap.Create;
    158         State.Width := 192;
    159         State.Height := 20;
     157        State.SetSize(192, 20);
    160158        State.Canvas.Brush.Style := bsClear;
    161159        State.Canvas.Font.Assign(UniFont[ftSmall]);
     
    166164      begin
    167165        Shade.Free;
    168         State.Free
     166        State.Free;
    169167      end;
    170168
Note: See TracChangeset for help on using the changeset viewer.