Changeset 92 for trunk


Ignore:
Timestamp:
Jan 19, 2017, 10:07:16 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Used bad Width and Height for drawing of colony ship.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Diagram.pas

    r38 r92  
    5959  i, x, r, nComp, nPow, nHab: integer;
    6060begin
    61   with canvas do
    62   begin
    63     Brush.Color := $000000;
    64     FillRect(Rect(Left, Top, Left + Width, Top + 200));
    65     Brush.Style := bsClear;
     61  Canvas.Brush.Color := $000000;
     62  Canvas.FillRect(Rect(Left, Top, Left + Width, Top + 200));
     63  Canvas.Brush.Style := bsClear;
    6664    ScreenTools.Frame(canvas, Left - 1, Top - 1, Left + Width, Top + 200,
    6765      MainTexture.clBevelShade, MainTexture.clBevelLight);
     
    7573      x := Random((Width - 16) * 200);
    7674      r := Random(13) + 28;
    77       Pixels[x div 200 + 8, x mod 200 + Top] :=
     75      Canvas.Pixels[x div 200 + 8, x mod 200 + Top] :=
    7876        (r * r * r * r div 10001) * $10101;
    7977    end;
     
    125123      Sprite(canvas, HGrSystem2, Left + Width div 2 + xComp[4],
    126124        Top + 100 + 7 + yComp[4], 16, 27, 18, 82);
    127   end
    128125end;
    129126
Note: See TracChangeset for help on using the changeset viewer.