Ignore:
Timestamp:
Jun 23, 2019, 9:12:54 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved scaling support.
File:
1 edited

Legend:

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

    r178 r179  
    4444    if FGraphic <> nil then
    4545    begin
    46       BitBlt(Canvas.Handle, 0, 0, 25, 25, FGraphic.Canvas.Handle, 169,
     46      DpiBitBlt(Canvas.Handle, 0, 0, 25, 25, FGraphic.Canvas.Handle, 169,
    4747        243 + 26 * Byte(FDown), SRCCOPY);
    4848      if FIndex >= 0 then
    4949      begin
    50         BitBlt(Canvas.Handle, 0, 0, 25, 25, FMask.Canvas.Handle,
     50        DpiBitBlt(Canvas.Handle, 0, 0, 25, 25, FMask.Canvas.Handle,
    5151          1 + FIndex mod 12 * 26, 337 + FIndex div 12 * 26, SRCAND);
    52         BitBlt(Canvas.Handle, 0, 0, 25, 25, FGraphic.Canvas.Handle,
     52        DpiBitBlt(Canvas.Handle, 0, 0, 25, 25, FGraphic.Canvas.Handle,
    5353          1 + FIndex mod 12 * 26, 337 + FIndex div 12 * 26, SRCPAINT);
    5454      end
Note: See TracChangeset for help on using the changeset viewer.