Ignore:
Timestamp:
Feb 24, 2024, 8:04:26 PM (9 months ago)
Author:
chronos
Message:
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.