- Timestamp:
- Sep 15, 2024, 5:34:07 PM (3 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r619 r620 3507 3507 3508 3508 MainFormKeyDown := FormKeyDown; 3509 BaseWin.CreateOffscreen(Offscreen );3509 BaseWin.CreateOffscreen(Offscreen, Width, Height); 3510 3510 3511 3511 // define which menu settings to save … … 8297 8297 MiniFrame, MaxMapWidth: Integer; 8298 8298 begin 8299 BaseWin.CreateOffscreen(Offscreen );8299 BaseWin.CreateOffscreen(Offscreen, Width, Height); 8300 8300 SmallScreen := Width < 1024; 8301 8301 with MainMap do begin -
trunk/Packages/CevoComponents/BaseWin.pas
r567 r620 69 69 SideFrame = 9; 70 70 71 procedure CreateOffscreen(var Offscreen: TBitmap );71 procedure CreateOffscreen(var Offscreen: TBitmap; Width, Height: Integer); 72 72 function WindowModeMakePersistent(Mode: TWindowMode): TWindowMode; 73 73 procedure Register; … … 93 93 constructor TBufferedDrawDlg.Create(AOwner: TComponent); 94 94 begin 95 BaseWin.CreateOffscreen(Offscreen );95 BaseWin.CreateOffscreen(Offscreen, Width, Height); 96 96 OnClose := FormClose; 97 97 OnPaint := FormPaint; … … 159 159 procedure TBufferedDrawDlg.OffscreenPaint; 160 160 begin 161 BaseWin.CreateOffscreen(Offscreen, Width, Height); 161 162 if (OffscreenUser <> nil) and (OffscreenUser <> Self) then 162 163 OffscreenUser.Update; // complete working with old owner to prevent rebound … … 332 333 Frame(Canvas, SideFrame - 1, TitleHeight - 1, ClientWidth - SideFrame, 333 334 InnerBottom, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 334 // RFrame(Canvas,SideFrame -2,TitleHeight-2,ClientWidth-SideFrame+1,335 // InnerBottom +1,MainTexture.ColorBevelShade,MainTexture.ColorBevelLight);335 // RFrame(Canvas,SideFrame - 2, TitleHeight - 2, ClientWidth - SideFrame + 1, 336 // InnerBottom + 1, MainTexture.ColorBevelShade, MainTexture.ColorBevelLight); 336 337 if FullCaption then begin 337 338 if (FWindowMode <> wmModal) or not ModalIndication then … … 475 476 end; 476 477 477 procedure CreateOffscreen(var Offscreen: TBitmap );478 procedure CreateOffscreen(var Offscreen: TBitmap; Width, Height: Integer); 478 479 var 479 480 NewWidth: Integer; … … 484 485 Offscreen.PixelFormat := TPixelFormat.pf24bit; 485 486 end; 486 if Screen.Height - yUnused < 480 then begin487 NewWidth := Screen.Width;487 if Height - yUnused < 480 then begin 488 NewWidth := Width; 488 489 NewHeight := 480; 489 490 end else begin 490 NewWidth := Screen.Width;491 NewHeight := Screen.Height - yUnused;491 NewWidth := Width; 492 NewHeight := Height - yUnused; 492 493 end; 493 494 if (Offscreen.Width <> NewWidth) or (Offscreen.Height <> NewHeight) then begin -
trunk/Packages/DpiControls/Dpi.Controls.pas
r570 r620 375 375 end; 376 376 377 378 377 var 379 378 Mouse: TMouse;
Note:
See TracChangeset
for help on using the changeset viewer.