Changeset 565 for trunk/LocalPlayer


Ignore:
Timestamp:
May 1, 2024, 12:08:20 PM (7 months ago)
Author:
chronos
Message:
  • Modified: Start form changed to use Offscreen bitmap for drawing as Qt5 doesn't support copying from form canvas.
Location:
trunk/LocalPlayer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Battle.pas

    r548 r565  
    229229    FillRect(Rect(0, 0, ClientWidth, ClientHeight));
    230230    Brush.Style := TBrushStyle.bsClear;
    231     PaintBackground(Self, 3 + Border, 3 + Border,
    232       ClientWidth - (6 + 2 * Border), ClientHeight - (6 + 2 * Border));
     231    PaintBackground(Canvas, 3 + Border, 3 + Border,
     232      ClientWidth - (6 + 2 * Border), ClientHeight - (6 + 2 * Border),
     233      ClientWidth, ClientHeight);
    233234  end;
    234235  Frame(Canvas, Border + 1, Border + 1, ClientWidth - (2 + Border),
  • trunk/LocalPlayer/Rates.pas

    r531 r565  
    2121    procedure FormCreate(Sender: TObject);
    2222    procedure TaxLuxBtnClick(Sender: TObject);
     23  protected
     24    procedure OffscreenPaint; override;
    2325  public
    24     procedure OffscreenPaint; override;
    2526    procedure ShowNewContent(NewMode: TWindowMode);
    2627  end;
     
    4849  S, s1: string;
    4950begin
    50   if (OffscreenUser <> nil) and (OffscreenUser <> Self) then
    51     OffscreenUser.Update;
    52   // complete working with old owner to prevent rebound
    53   OffscreenUser := Self;
     51  inherited;
    5452
    5553  Fill(Offscreen.Canvas, 0, 0, ClientWidth, ClientHeight,
  • trunk/LocalPlayer/Wonders.pas

    r548 r565  
    2727    procedure Glow(I, GlowColor: Integer);
    2828    procedure PaintBackgroundShape;
     29  protected
     30    procedure OffscreenPaint; override;
    2931  public
    30     procedure OffscreenPaint; override;
    3132    procedure ShowNewContent(NewMode: TWindowMode);
    3233  end;
     
    193194  S: string;
    194195begin
    195   if (OffscreenUser <> nil) and (OffscreenUser <> Self) then
    196     OffscreenUser.Update;
    197   // complete working with old owner to prevent rebound
    198   OffscreenUser := Self;
     196  inherited;
    199197
    200198  Fill(Offscreen.Canvas, 3, 3, ClientWidth - 6, ClientHeight - 6,
Note: See TracChangeset for help on using the changeset viewer.