Changeset 474 for trunk/Packages


Ignore:
Timestamp:
Dec 4, 2023, 7:18:18 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: More high dpi related fixes.
Location:
trunk/Packages
Files:
2 edited

Legend:

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

    r473 r474  
    17951795  end;
    17961796
    1797   LogoBuffer := TBitmap.Create;
    1798   LogoBuffer.PixelFormat := TPixelFormat.pf24bit;
    1799   LogoBuffer.SetSize(BigBook.Width, BigBook.Height);
     1797  if not Assigned(LogoBuffer) then begin
     1798    LogoBuffer := TBitmap.Create;
     1799    LogoBuffer.PixelFormat := TPixelFormat.pf24bit;
     1800    LogoBuffer.SetSize(BigBook.Width, BigBook.Height);
     1801  end;
    18001802
    18011803  LoadGraphicFile(Colors, GetGraphicsDir + DirectorySeparator + 'Colors.png');
  • trunk/Packages/DpiControls/Dpi.Graphics.pas

    r468 r474  
    245245  public
    246246    constructor Create; override;
     247    destructor Destroy; override;
    247248    procedure BeginUpdate(ACanvasOnly: Boolean = False);
    248249    procedure EndUpdate(AStreamIsValid: Boolean = False);
     
    630631end;
    631632
     633destructor TRasterImage.Destroy;
     634begin
     635  FreeAndNil(FCanvas);
     636  inherited;
     637end;
     638
    632639procedure TRasterImage.BeginUpdate(ACanvasOnly: Boolean);
    633640begin
Note: See TracChangeset for help on using the changeset viewer.