Ignore:
Timestamp:
Dec 24, 2023, 11:24:57 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Battle.pas

    r496 r505  
    112112    VLightGradient(ca, xm - 8, ym + 8 + LABaseDamage, LADamage - LABaseDamage,
    113113      FanaticColor);
    114   BitBltCanvas(ca, xm - 12, ym - 12, 24, 24,
    115     HGrSystem.Mask.Canvas, 26, 146, SRCAND);
    116   BitBltCanvas(ca, xm - 12, ym - 12, 24, 24,
    117     HGrSystem.Data.Canvas, 26, 146, SRCPAINT);
     114  Sprite(ca, HGrSystem, xm - 12, ym - 12, 24, 24, 26, 146);
    118115
    119116  LabelText := Format('%d', [Forecast.AStr]);
     
    139136    BitBltCanvas(ca, xm + 9 + LDDamage - 7, ym - 6, 14, 17,
    140137      HGrSystem.Mask.Canvas, 51, 153, SRCAND);
    141     BitBltCanvas(ca, xm + 8 + LDDamage - 7, ym - 7, 14, 17,
    142       HGrSystem.Mask.Canvas, 51, 153, SRCAND);
    143     BitBltCanvas(ca, xm + 8 + LDDamage - 7, ym - 7, 14, 17,
    144       HGrSystem.Data.Canvas, 51, 153, SRCPAINT);
     138    Sprite(ca, HGrSystem, xm + 8 + LDDamage - 7, ym - 7, 14, 17, 51, 153);
    145139  end;
    146140  LabelText := Format('%d', [DDamage]);
     
    159153    BitBltCanvas(ca, xm - 6, ym + 9 + LADamage - 7, 14, 17,
    160154      HGrSystem.Mask.Canvas, 51, 153, SRCAND);
    161     BitBltCanvas(ca, xm - 7, ym + 8 + LADamage - 7, 14, 17,
    162       HGrSystem.Mask.Canvas, 51, 153, SRCAND);
    163     BitBltCanvas(ca, xm - 7, ym + 8 + LADamage - 7, 14, 17,
    164       HGrSystem.Data.Canvas, 51, 153, SRCPAINT);
     155    Sprite(ca, HGrSystem, xm - 7, ym + 8 + LADamage - 7, 14, 17, 51, 153);
    165156  end;
    166157  LabelText := Format('%d', [MyUn[uix].Health - Forecast.EndHealthAtt]);
Note: See TracChangeset for help on using the changeset viewer.