Changeset 657 for trunk/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Jun 3, 2025, 10:20:19 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r622 r657 64 64 65 65 const 66 yUnused = 161;67 66 NarrowFrame = 11; 68 67 WideFrame = 36; … … 477 476 478 477 procedure CreateOffscreen(var Offscreen: TBitmap; Width, Height: Integer); 479 var480 NewWidth: Integer;481 NewHeight: Integer;482 478 begin 483 479 if not Assigned(Offscreen) then begin … … 485 481 Offscreen.PixelFormat := TPixelFormat.pf24bit; 486 482 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); 496 485 Offscreen.Canvas.Brush.Color := clBlack; 497 486 Offscreen.Canvas.Brush.Style := TBrushStyle.bsSolid;
Note:
See TracChangeset
for help on using the changeset viewer.