Ignore:
Timestamp:
Jun 3, 2025, 10:20:19 PM (3 weeks ago)
Author:
chronos
Message:
  • Fixed: Missing offscreen black area at the bottom of Draft window.
  • Fixed: Build under Lazarus 4.
File:
1 edited

Legend:

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

    r622 r657  
    6464
    6565const
    66   yUnused = 161;
    6766  NarrowFrame = 11;
    6867  WideFrame = 36;
     
    477476
    478477procedure CreateOffscreen(var Offscreen: TBitmap; Width, Height: Integer);
    479 var
    480   NewWidth: Integer;
    481   NewHeight: Integer;
    482478begin
    483479  if not Assigned(Offscreen) then begin
     
    485481    Offscreen.PixelFormat := TPixelFormat.pf24bit;
    486482  end;
    487   if Height - yUnused < 480 then begin
    488     NewWidth := Width;
    489     NewHeight := 480;
    490   end else begin
    491     NewWidth := Width;
    492     NewHeight := Height - yUnused;
    493   end;
    494   if (Offscreen.Width <> NewWidth) or (Offscreen.Height <> NewHeight) then begin
    495     Offscreen.SetSize(NewWidth, NewHeight);
     483  if (Offscreen.Width <> Width) or (Offscreen.Height <> Height) then begin
     484    Offscreen.SetSize(Width, Height);
    496485    Offscreen.Canvas.Brush.Color := clBlack;
    497486    Offscreen.Canvas.Brush.Style := TBrushStyle.bsSolid;
Note: See TracChangeset for help on using the changeset viewer.