Ignore:
Timestamp:
Apr 24, 2021, 11:41:07 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Merged changes from trunk r377.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Direct.pas

    r361 r378  
    4343
    4444uses
    45   ScreenTools, Protocol, Start, LocalPlayer, NoTerm, Back, Global;
     45  ScreenTools, Protocol, Start, LocalPlayer, NoTerm, Back, Global, UNetworkServer,
     46  UNetworkClient;
    4647
    4748{$R *.lfm}
     
    5758//  p: pointer;
    5859  s: string;
    59 begin
     60Begin
    6061  case ID of
    6162    ntInitLocalHuman: begin
     
    6465      Info := Phrases.Lookup('BUSY_MODLH');
    6566      Show;
    66       {$IFDEF LINUX}
    67       // Force shown window repaint on Gtk2 widgetset
    68       Sleep(1);
    69       DpiApplication.ProcessMessages;
    70       {$ENDIF}
     67      Gtk2Fix;
    7168      Invalidate;
    7269      Update;
     
    185182  BrainTerm.Client := LocalPlayer.Client;
    186183  BrainTerm.Name := Phrases.Lookup('HUMAN');
     184  if NetworkEnabled then begin
     185    BrainNetworkServer.Client := UNetworkServer.Client;
     186    BrainNetworkServer.Name := Phrases.Lookup('NETWORK_SERVER');
     187    BrainNetworkClient.Client := UNetworkClient.Client;
     188    BrainNetworkClient.Name := Phrases.Lookup('NETWORK_CLIENT');
     189  end;
    187190  BrainRandom.Name := Phrases.Lookup('RANDOMAI');
    188191  Canvas.Font.Assign(UniFont[ftNormal]);
     
    191194
    192195procedure TDirectDlg.FormShow(Sender: TObject);
     196var
     197  I: Integer;
    193198begin
    194199  if not Gone then
Note: See TracChangeset for help on using the changeset viewer.