Changeset 378 for branches/highdpi/Direct.pas
- Timestamp:
- Apr 24, 2021, 11:41:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Direct.pas
r361 r378 43 43 44 44 uses 45 ScreenTools, Protocol, Start, LocalPlayer, NoTerm, Back, Global; 45 ScreenTools, Protocol, Start, LocalPlayer, NoTerm, Back, Global, UNetworkServer, 46 UNetworkClient; 46 47 47 48 {$R *.lfm} … … 57 58 // p: pointer; 58 59 s: string; 59 begin60 Begin 60 61 case ID of 61 62 ntInitLocalHuman: begin … … 64 65 Info := Phrases.Lookup('BUSY_MODLH'); 65 66 Show; 66 {$IFDEF LINUX} 67 // Force shown window repaint on Gtk2 widgetset 68 Sleep(1); 69 DpiApplication.ProcessMessages; 70 {$ENDIF} 67 Gtk2Fix; 71 68 Invalidate; 72 69 Update; … … 185 182 BrainTerm.Client := LocalPlayer.Client; 186 183 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; 187 190 BrainRandom.Name := Phrases.Lookup('RANDOMAI'); 188 191 Canvas.Font.Assign(UniFont[ftNormal]); … … 191 194 192 195 procedure TDirectDlg.FormShow(Sender: TObject); 196 var 197 I: Integer; 193 198 begin 194 199 if not Gone then
Note:
See TracChangeset
for help on using the changeset viewer.