Ignore:
Timestamp:
Dec 4, 2023, 11:33:25 PM (6 months ago)
Author:
chronos
Message:
  • Fixed: Scaling on Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/DpiControls/Dpi.Graphics.pas

    r474 r477  
    733733  try
    734734    Bitmap.LoadFromFile(FileName);
    735     Width := Bitmap.Width;
    736     Height := Bitmap.Height;
     735    if Self is TRasterImage then begin
     736      TRasterImage(Self).SetSize(Bitmap.Width, Bitmap.Height);
     737    end else begin
     738      Width := Bitmap.Width;
     739      Height := Bitmap.Height;
     740    end;
    737741    if Self is TCustomBitmap then begin
    738742      StretchDrawBitmap(Graphics.TRasterImage(Bitmap),
Note: See TracChangeset for help on using the changeset viewer.