Ignore:
Timestamp:
Jun 23, 2019, 11:57:39 PM (5 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/EOTButton.pas

    r178 r180  
    3737procedure Register;
    3838
     39
    3940implementation
     41
    4042
    4143procedure Register;
     
    124126    begin
    125127      // TODO: For some reason BitBlt is not working with gray background here
    126       //BitBlt(Buffer.Canvas.Handle, 0, 0, 48, 48, Back.Canvas.Handle, 0,
     128      //DpiBitBlt(Buffer.Canvas.Handle, 0, 0, 48, 48, Back.Canvas.Handle, 0,
    127129      //  0, SRCCOPY);
    128130      Buffer.Canvas.Draw(0, 0, Back);
     
    132134        ImageOp_CBC(Buffer, Template, 8, 8, 1 + 32 * Byte(FIndex), 246, 32, 32,
    133135          $000000, $FFFFFF);
    134       BitBlt(Canvas.Handle, 0, 0, 48, 48, Buffer.Canvas.Handle, 0, 0, SRCCOPY);
     136      DpiBitBlt(Canvas.Handle, 0, 0, 48, 48, Buffer.Canvas.Handle, 0, 0, SRCCOPY);
    135137    end
    136138    else
     
    164166procedure TEOTButton.SetBack(ca: TDpiCanvas; x, y: integer);
    165167begin
    166   BitBlt(Back.Canvas.Handle, 0, 0, 48, 48, ca.Handle, x, y, SRCCOPY);
     168  DpiBitBlt(Back.Canvas.Handle, 0, 0, 48, 48, ca.Handle, x, y, SRCCOPY);
    167169end;
    168170
Note: See TracChangeset for help on using the changeset viewer.