Changeset 657 for trunk


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.
Location:
trunk
Files:
3 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;
  • trunk/Packages/DpiControls/Dpi.Common.pas

    r630 r657  
    2222{$ENDIF}
    2323function ScrollDC(Canvas: TCanvas; dx: Longint; dy: Longint; const lprcScroll: TRect;
    24   const lprcClip:TRect; hrgnUpdate: Handle; lprcUpdate: PRect): Boolean; overload;
     24  const lprcClip:TRect; hrgnUpdate: HWND; lprcUpdate: PRect): Boolean; overload;
    2525function SetWindowPos(hWnd: HWND; hWndInsertAfter: HWND;
    2626  X, Y, cx, cy: Integer; uFlags: UINT): Boolean;
     
    202202
    203203function ScrollDC(Canvas: TCanvas; dx: Longint; dy: Longint;
    204   const lprcScroll: TRect; const lprcClip: TRect; hrgnUpdate: Handle;
     204  const lprcScroll: TRect; const lprcClip: TRect; hrgnUpdate: HWND;
    205205  lprcUpdate: PRect): Boolean;
    206206begin
  • trunk/readme.txt

    r550 r657  
    2424* Home page: https://app.zdechov.net/c-evo/
    2525* Source code: https://svn.zdechov.net/c-evo/
    26 * Developed in [http://www.lazarus-ide.org/ Lazarus/FPC] 3.2.0
     26* Developed in [http://www.lazarus-ide.org/ Lazarus/FPC] 4.0.0
    2727* To build new Windows installer run Install/build.bat. InnoSetup (http://www.jrsoftware.org/isdl.php) needs to be installed).
    2828
Note: See TracChangeset for help on using the changeset viewer.