Changeset 623


Ignore:
Timestamp:
Sep 15, 2024, 10:48:56 PM (4 days ago)
Author:
chronos
Message:
  • Modified: Avoid using screen size in Background painting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Back.pas

    r622 r623  
    5353begin
    5454  if Assigned(Img) then
    55     BitBltCanvas(Canvas, Screen.PrimaryMonitor.Width - Img.Width - (Screen.PrimaryMonitor.Width - 800) *
    56       3 div 8, (Screen.PrimaryMonitor.Height - 600) div 3, Img.Width, Img.Height,
     55    BitBltCanvas(Canvas, Width - Img.Width - (Width - 800) *
     56      3 div 8, (Height - 600) div 3, Img.Width, Img.Height,
    5757      Img.Canvas, 0, 0);
    5858end;
Note: See TracChangeset for help on using the changeset viewer.