Ignore:
Timestamp:
Feb 24, 2024, 8:04:26 PM (9 months ago)
Author:
chronos
Message:
Location:
trunk/Packages/CevoComponents
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/EOTButton.pas

    r471 r530  
    2121    destructor Destroy; override;
    2222    procedure SetButtonIndexFast(X: Integer);
    23     procedure SetBack(ca: TCanvas; X, Y: Integer);
     23    procedure SetBack(Canvas: TCanvas; X, Y: Integer);
    2424  private
    2525    FTemplate: TBitmap;
     
    7777    if FGraphic <> nil then begin
    7878      UnshareBitmap(Buffer);
    79       BitBltCanvas(Buffer.Canvas, 0, 0, 48, 48, Back.Canvas, 0, 0);
     79      BitBltBitmap(Buffer, 0, 0, 48, 48, Back, 0, 0);
    8080      ImageOp_CBC(Buffer, Template, 0, 0, 133, 149 + 48 * Byte(FDown), 48, 48,
    8181        $000000, $FFFFFF);
     
    109109end;
    110110
    111 procedure TEOTButton.SetBack(ca: TCanvas; X, Y: Integer);
     111procedure TEOTButton.SetBack(Canvas: TCanvas; X, Y: Integer);
    112112begin
    113   BitBltCanvas(Back.Canvas, 0, 0, 48, 48, ca, X, Y);
     113  BitBltCanvas(Back.Canvas, 0, 0, 48, 48, Canvas, X, Y);
    114114end;
    115115
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r522 r530  
    569569procedure Dump(Dst: TBitmap; HGr: TGraphicSet; xDst, yDst, Width, Height, xGr, yGr: Integer);
    570570begin
    571   BitBltCanvas(Dst.Canvas, xDst, yDst, Width, Height,
    572     HGr.Data.Canvas, xGr, yGr);
     571  BitBltBitmap(Dst, xDst, yDst, Width, Height, HGr.Data, xGr, yGr);
    573572end;
    574573
     
    11161115    end;
    11171116  end;
    1118   BitBltCanvas(HGrSystem.Mask.Canvas, CityMark2.Left, CityMark2.Top, CityMark1.Width, CityMark1.Width,
    1119     HGrSystem.Mask.Canvas, CityMark1.Left, CityMark1.Top);
     1117  BitBltBitmap(HGrSystem.Mask, CityMark2.Left, CityMark2.Top, CityMark1.Width,
     1118    CityMark1.Width, HGrSystem.Mask, CityMark1.Left, CityMark1.Top);
    11201119end;
    11211120
     
    12161215procedure Corner(Canvas: TCanvas; X, Y, Kind: Integer; T: TTexture);
    12171216begin
    1218   { BitBltCanvas(Canvas,x,y,8,8,T.HGr.Mask.Canvas,
    1219     T.xGr+29+Kind*9,T.yGr+89,SRCAND);
    1220     BitBltCanvas(Canvas,X,Y,8,8,T.HGr.Data.Canvas,
    1221     T.xGr+29+Kind*9,T.yGr+89,SRCPAINT); }
     1217  { BitBltCanvas(Canvas, x, y, 8, 8, T.HGr.Mask.Canvas,
     1218    T.xGr + 29 + Kind * 9, T.yGr + 89, SRCAND);
     1219    BitBltCanvas(Canvas, X, Y, 8, 8, T.HGr.Data.Canvas,
     1220    T.xGr + 29 + Kind * 9, T.yGr + 89, SRCPAINT); }
    12221221end;
    12231222
     
    14541453      for I := 0 to Val mod 10 - 1 do
    14551454      begin
    1456         BitBltCanvas(Dst.Canvas, xIcon + 4 + I * (14 * ld div sd), yIcon + 2 + 1, 14,
    1457           14, HGrSystem.Mask.Canvas, 67 + Kind mod 8 * 15,
     1455        BitBltBitmap(Dst, xIcon + 4 + I * (14 * ld div sd), yIcon + 2 + 1, 14,
     1456          14, HGrSystem.Mask, 67 + Kind mod 8 * 15,
    14581457          70 + Kind div 8 * 15, SRCAND);
    14591458        Sprite(Dst, HGrSystem, xIcon + 3 + I * (14 * ld div sd), yIcon + 2,
     
    14621461      for I := 0 to Val div 10 - 1 do
    14631462      begin
    1464         BitBltCanvas(Dst.Canvas, xIcon + 4 + (Val mod 10) *
     1463        BitBltBitmap(Dst, xIcon + 4 + (Val mod 10) *
    14651464          (14 * ld div sd) + I * (14 * ld div sd), yIcon + 3, 14, 14,
    1466           HGrSystem.Mask.Canvas, 67 + 7 mod 8 * 15,
     1465          HGrSystem.Mask, 67 + 7 mod 8 * 15,
    14671466          70 + 7 div 8 * 15, SRCAND);
    14681467        Sprite(Dst, HGrSystem, xIcon + 3 + (Val mod 10) *
     
    14871486      for I := 0 to Val div 10 - 1 do
    14881487      begin
    1489         BitBltCanvas(Dst.Canvas, xIcon + 4 + I * (14 * ld div sd), yIcon + 3, 14, 14,
    1490           HGrSystem.Mask.Canvas, 67 + Kind mod 8 * 15,
     1488        BitBltBitmap(Dst, xIcon + 4 + I * (14 * ld div sd), yIcon + 3, 14, 14,
     1489          HGrSystem.Mask, 67 + Kind mod 8 * 15,
    14911490          70 + Kind div 8 * 15, SRCAND);
    14921491        Sprite(Dst, HGrSystem, xIcon + 3 + I * (14 * ld div sd), yIcon + 2,
     
    14951494      for I := 0 to Val mod 10 - 1 do
    14961495      begin
    1497         BitBltCanvas(Dst.Canvas, xIcon + 4 + (Val div 10) *
     1496        BitBltBitmap(Dst, xIcon + 4 + (Val div 10) *
    14981497          (14 * ld div sd) + I * (10 * ld div sd), yIcon + 7, 10, 10,
    1499           HGrSystem.Mask.Canvas, 66 + Kind mod 11 * 11,
     1498          HGrSystem.Mask, 66 + Kind mod 11 * 11,
    15001499          115 + Kind div 11 * 11, SRCAND);
    15011500        Sprite(Dst, HGrSystem, xIcon + 3 + (Val div 10) *
Note: See TracChangeset for help on using the changeset viewer.