Ignore:
Timestamp:
Apr 6, 2021, 8:11:02 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Merged trunk branch version r348 into highdpi branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/LocalPlayer/Draft.pas

    r303 r349  
    233233begin
    234234  inherited;
    235   // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it
    236   Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
     235  UnshareBitmap(Back);
    237236
    238237  ClientHeight := Template.Height - Cut;
     
    275274          x := xDomain + d * DomainPitch;
    276275          if d = Domain then
    277             ImageOp_BCC(offscreen, Templates, x, yDomain, 142, 246 + 37 * d, 36,
     276            ImageOp_BCC(offscreen, Templates.Data, x, yDomain, 142, 246 + 37 * d, 36,
    278277              36, 0, $00C0FF)
    279278          else
    280             ImageOp_BCC(offscreen, Templates, x, yDomain, 142, 246 + 37 * d, 36,
     279            ImageOp_BCC(offscreen, Templates.Data, x, yDomain, 142, 246 + 37 * d, 36,
    281280              36, 0, $606060);
    282281        end;
     
    300299      for i := 0 to MaxWeight - 1 do
    301300        if i < Weight then
    302           ImageOp_BCC(offscreen, Templates, xWeight + 20 * i, yWeight, 123, 400,
    303             18, 20, 0, $949494)
     301          ImageOp_BCC(offscreen, Templates.Data, Point(xWeight + 20 * i, yWeight),
     302            WeightOn.BoundsRect, 0, $949494)
    304303        else
    305           ImageOp_BCC(offscreen, Templates, xWeight + 20 * i, yWeight, 105, 400,
    306             18, 20, 0, $949494);
     304          ImageOp_BCC(offscreen, Templates.Data, Point(xWeight + 20 * i, yWeight),
     305            WeightOff.BoundsRect, 0, $949494);
    307306    end;
    308307
     
    336335          // paint cost
    337336          LightGradient(offscreen.Canvas, xFeature + 34,
    338             yFeature + LinePitch * i, 50, GrExt[HGrSystem].Data.Canvas.Pixels
     337            yFeature + LinePitch * i, 50, HGrSystem.Data.Canvas.Pixels
    339338            [187, 137]);
    340339          if (Domain = dGround) and (code[i] = mcDefense) then
Note: See TracChangeset for help on using the changeset viewer.