Ignore:
Timestamp:
Apr 28, 2022, 10:40:37 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Changed WindowMode numerical constants to enumeration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Nego.pas

    r417 r431  
    7575    procedure Start; // next turn of negotiation
    7676    procedure OffscreenPaint; override;
    77     procedure ShowNewContent(NewMode: integer);
     77    procedure ShowNewContent(NewMode: TWindowMode);
    7878
    7979  private
     
    192192end;
    193193
    194 procedure TNegoDlg.ShowNewContent(NewMode: integer);
     194procedure TNegoDlg.ShowNewContent(NewMode: TWindowMode);
    195195begin
    196196  inherited ShowNewContent(NewMode);
     
    648648  if (X >= xNationPicture0) and (X < xNationPicture0 + 64) and
    649649    (Y >= yNationPicture) and (Y < yNationPicture + 48) then
    650     NatStatDlg.ShowNewContent(FWindowMode or wmPersistent, DipMem[me].pContact)
     650    NatStatDlg.ShowNewContent(WindowModePersistent(FWindowMode), DipMem[me].pContact)
    651651  else if (X >= xNationPicture1) and (X < xNationPicture1 + 64) and
    652652    (Y >= yNationPicture) and (Y < yNationPicture + 48) then
    653     NatStatDlg.ShowNewContent(FWindowMode or wmPersistent, me)
     653    NatStatDlg.ShowNewContent(WindowModePersistent(FWindowMode), me)
    654654end;
    655655
Note: See TracChangeset for help on using the changeset viewer.